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
Difference-in-differenceHi everyone, I conducted an experiment where 2 parameters (alpha, beta) using 6 different methods w…
how to report nagelkerke and index in logit regressionhow can I report nagelkerke and index for the model fit f in logit regresion? I tried fitstat after…
Generate a new variable adding observations of a different columnHello, I have the following dataset: Code: * Example generated by -dataex-. To install: ssc insta…
Calculating Marginal EffectsDear all, I have had some trouble calculating one of the marginal effects of my regression. I am ru…
Putexcel: Conditional FormattingDear all, I need to generate an Excel report containing summary statistics as well as a subset of o…
Subscribe to:
Post Comments (Atom)
0 Response to Help with random uniform data
Post a Comment