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
Error message: Repeated time values within panelHi, I am struggling to understand why I am unable to xtset my panel data. I have used the Understa…
Creating plots to investigate non-linear effectsHi, I'm having trouble creating and understanding plots that show a non-linear effect and how this …
Generating new var conditional on other variablesHello, I am trying to generate a new variable (let's call it varNEW) based on 6 other variables (let…
How to "table" into a putdocx or otherDear all, I am using Stata 16 and dealing with several descriptive stats as well as graphs, and I ne…
Combining MICE with predictive mean matchingI am trying to multiply impute n=30 data sets, and I am hoping to do this using both chained equatio…
Subscribe to:
Post Comments (Atom)
0 Response to Help with random uniform data
Post a Comment