Hello, I am trying to randomize 100 obs into 3 groups with equal changes of being in either group.
Group 1 = treatment
Group 2= Control 1
Group 3= Control 2
I am trying to improve my current formula but in vain
Here is my Current formula which is only generating only two groups
gen number = uniform()
centile (number), centile(50)
gen treatment=1 if number>=r(c_1)
replace treatment=2 if number<r(c_1)
Group 1 = treatment
Group 2= Control 1
Group 3= Control 2
I am trying to improve my current formula but in vain
Here is my Current formula which is only generating only two groups
gen number = uniform()
centile (number), centile(50)
gen treatment=1 if number>=r(c_1)
replace treatment=2 if number<r(c_1)
Comment