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
How can I learn to write Ado fileHello Sir, I want to write ado files to modify "tab" command so that I can get the desired output p…
Control for country effect in a pooled estimationHello everybody, I have panel data with two time periods (t=2) and n regions as entities. I am cons…
Create indicator variable if identifier belong to a listDear all, I have two dataset, namely "A "and "B". In "A" dataset I have identified a list of ident…
categorical outcome for first occuring eventDear stalisters, I am performing an event history analysis using a multinomial model (competing ris…
using loop for saving and directoryHello, I try to use the loop for my analysis and save them and draw charts. so I receive an error se…
Subscribe to:
Post Comments (Atom)
0 Response to A question on randomization
Post a Comment