I wonder if there is a command that can do the following:
1. I have a list of 7 numbers, say (2,5,7,8,11,13,14)
2. I want to generate a variable call "v1" with observations = 100, the values of the 100 observations are randomly assigned from the 7 numbers in #1. In other words, the values of the 100 observations can only be (2,5,7,8,11,13,14).
If it possible to generate such variable in stata?
Related Posts with A question on randomization
Color schemes and color palettes - setting default colors for graphsI have a list of colors from my workplace that we should use for all the graphs I create. Ideally I …
Interpretation of a Relative Risk Ratio in the case of a continuous variable (in log)?Hello everyone I am conducting a mlogit regression with three possible outcomes (the first one bei…
I am confused about the confidence interval of survival analysis between two methodsIf I analyze a set of data use syntax ”ci means variate” and I get a result like this ci means y V…
Conditional probability after eprobitDear all, I am using eprobit in Stata 15 to estimate a probit regression with endogenous sample sel…
Cubic splines to model relationships between continuous variables and outcomes: a guide for cliniciansFor those interested, I've just come across this interesting article, published on Bone Marrow Trans…
Subscribe to:
Post Comments (Atom)
0 Response to A question on randomization
Post a Comment