Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to conduct stratified randomization in Stata

    Good day all. In a three-arm stratified cluster randomized trial, 18 clusters were randomly selected into three strata (6 clusters in each stratum). Please how can the 6 clusters within each stratum be randomized into three groups (one control and two treatment arms) to achieve 2:2:2 allocation?

  • #2
    There are a few user-written commands for randomization (ralloc, randomize, ccrand), but you can do stratified random allocation from scratch easily.

    Comment


    • #3
      Thanks for your response. Please can you help out with both of your suggestions?

      Comment


      • #4
        Well you can search for the programs and install. I've used ralloc. It's downloadable from ssc. Haven't used either of the other mentioned programs.

        Comment


        • #5
          Thanks Brad. Will give it a try.

          Comment


          • #6
            Code:
            help randomly assign
            finds other contributed commands at SSC. John Ternovski's stratarand looks like a good one for you. As you are randomizing clusters, start with a dataset of 18 observations, containing just the stratum & cluster variables, then merge the treatment assignments with your full data set.

            To do the calculation from scratch, see this UCLA page.
            Last edited by Steve Samuels; 15 Nov 2017, 07:59.
            Steve Samuels
            Statistical Consulting
            [email protected]

            Stata 14.2

            Comment


            • #7
              Thanks very much Steve. The link is very helpful.

              Comment

              Working...
              X