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
ranked quartiles each yearHi all, I'm working on the following sample. Code: * Example generated by -dataex-. To install: …
crosstabsIf I would like to analyze the relationship between two or more categorical variables, can you recom…
If condition with xtreg appropriate?Dear all, For my master's thesis, I'm trying to look at the effect of a policy change on women's la…
Odd results in fixed effects panel regression with interaction termsI am trying to run a study of mutual fund performance where I divide the sample in expansions/recess…
Point in poly dataset mappingHello, I am trying to map points in one dataset to the polygons defined in a second dataset in such…
Subscribe to:
Post Comments (Atom)
0 Response to Help with random uniform data
Post a Comment