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
Specification of funnel plot with -funnelcompar-Hi Statalisters I want to assess county differences in medication rates in Norway to detect outlier…
Generating a new variable based on several specified conditionsDear Stata-Community, I am currently working on a paper in which I want to create a variable that in…
Test for differences in Medians for Multiple Variables Using qregDear Stata Users: I would like to Test for differences in Medians for Multiple Variables Using qreg …
Specification of funnel plot with -funnelcompar-Hi Statalisters I want to assess county differences in medication rates in Norway to detect outlier…
Panel data with fixed effects model having dummy/time-invariant variables in data setGreetings, I'm trying to conduct FE-model test on my panel data set. The panel consists of 116 comp…
Subscribe to:
Post Comments (Atom)
0 Response to Create Dataset in Stata using a Loop
Post a Comment