Hi,
I know that I can generate random uniform data by:
gen variable = uniform()
But now I want to generate a binary variable 0 or 1 and also let them be random uniform distributed, how can I do that?
I'll be really looking forward to your help. Thank you!
Related Posts with Help with random uniform data
Adding 'proportion' to esttab command.Dear All, I am estimating a logistic fixed effects regression to estimate the effect of a policy ch…
Changing the date formatCurrently, I have the variable, calldate, which is in the format 09jul2019, 10jul2019, etc. Is ther…
Update to -kmatch- available from SSCA maintenance update to kmatch is now available from SSC. Type Code: . ssc install kmatch, replace…
stata doesn't recognize missings in string variableI want to delete observations that have missing data for a particular variable but stata does not re…
Update to -iscogen- available from SSCAn update to the iscogen package is now available from SSC. Type Code: . ssc install iscogen, repl…
Subscribe to:
Post Comments (Atom)
0 Response to Help with random uniform data
Post a Comment