I'm having trouble finding guidance on this. I want to create a dataset that has a variable called "location" and contains the values 1, 3, 4, 6, 7 with another variable called "action" that contains values1, 2, 3, 4, 5. I want my dataset to contain every combination of these, but I do not want to input manually. Any ideas?
location action
1 1
1 2
1 3
1 4
1 5
3 1
3 2
...
Related Posts with Create Dataset in Stata using a Loop
Doubt on data structure/fixed effectsDear Statalist users, I could really use some advice on how to handle the data I have for a piece o…
Classification of enterprises into size classesDear experts, I have a panel data set with 77 variables and about 57,000 observations for the years…
GMM estimation problem and f-statisticHI to everyone! I´m working on gmm model. I have stata 14. My data has 32 individuals and 13 years …
metaprop command: where is "logit" option?Dear all, I am writing to ask if any of you have ever used the "metaprop" command for a Meta-analysi…
graph for the dynamic treatment effect using did_multiplegt packageHi, I am trying to draw a graph like the following using did_multiplegt package: Array But in fact,…
Subscribe to:
Post Comments (Atom)
0 Response to Create Dataset in Stata using a Loop
Post a Comment