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
Population-weighted estimate with panel dataHi all, I have a problem in estimation with panel data. I would like to study the correlation betwe…
time trends and individual effectsDear all, When I control i.company#c.trend, can I control individual effects? Code: webuse grunfel…
How to fill in missing values by group when there is one nonmissing value per groupHi, I have a variable that has one nonmissing numeric value per group, and all the other values are …
Using lfit with log(x)Hi, my equation of my regression is : Y=B0 + B1*log(x) I would like to get a graph with this equatio…
exact, loopable area shading of line graph between pairs of observationsDear list members, I have a question on the placement of shaded areas in graphs. I had a look at SJ…
Subscribe to:
Post Comments (Atom)
0 Response to Help with random uniform data
Post a Comment