I need help with random assigning treatments in Stata, I am lost. The variable is assigned to be treated with at 45% probability. After the variable has been assigned to be treated, I have to pick the treatment date by randomly drawing a specific time period.
Any help on how to do this. The code I created did not produce any results.
gen effect = runiform(weight,.45)
Aucun commentaire:
Enregistrer un commentaire