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
Measuring labour productivity using firm-level panel dataHello, My aim is to measure labour productivity in firm-level panel data. (all the analysis would …
Appending PDF documents using StataHello everyone, Hope you are well. I have a question regarding appending multiple documents and wh…
recording forward observations in panel dataDear Statalist, This is probably a trivial question, but I couldn't find a solution for it myself. …
Can I Collapse or Reshape to Wide?I am struggling to do the right thing here, as well as use the right terminology because I'm not pos…
Advice on DiD using repeated cross sectional dataI have a question about treatment and control groups - DiD using repeated cross sectional data. If n…
Subscribe to:
Post Comments (Atom)
0 Response to Create Dataset in Stata using a Loop
Post a Comment