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
grc1leg alternatives.Dear All, I am using Stata MP on my universities Linux based super computer and it does not have us…
Why doesn't clustering change anything?Hi all, I have panel data xtset across 3 waves of children's weight and parents employment status, …
Creating variables out of duplicatesHi, as this is my first post, I hope I meet all the criteria. I am using a large panel data set on a…
Marginal effects on predicted marginal probability after mvprobitHi! I ran a multivariate probit regression on 3 binary dependent variables using Capellari and Jenki…
Merging two datasets with specific dates of start and end of period within a yearI am running on panel project where I have to merge and match two dataset . My first dataset is a se…
Subscribe to:
Post Comments (Atom)
0 Response to A question on randomization
Post a Comment