Hello Listers
i want to make a mock dataset
i would like to generate 2 integers at random
1) either 0 or 1
2) between 18-99
3) either 0 or 1 but at a ratio of 5 to 1
thank you.
best
lars
Related Posts with Generate random integers
Diff in diff: Fix data for one-to-one matching propensity scoreI have a data set of companies with the date they were acquired by a business group and a control gr…
"Encode" a String with another String?Hello: I am trying to create a long code list where var1 is a string and what it should represent is…
egen problemHi list, I want to generate a variable that equals the mean of the values of the first two nonmissi…
New to stata, Impossible problem for a summary table?Hello all- I'm so glad I found this forum! I've just started working with stata for a biostats class…
Maximum number of iterations exceededHello, I hope you guys are doing well. I am estimating a model using panel ardl techniques, namely …
Subscribe to:
Post Comments (Atom)
0 Response to Generate random integers
Post a Comment