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?
0 Response to A question on randomization
Post a Comment