Hi, I am trying to generate the index "z" in Stata, so that Z has the same value for all Xs and Ys. For example:
x y z
1 1 1
1 2 1
1 3 1
2 4 2
2 5 3
2 6 3
4 7 4
5 2 1
6 3 1
7 8 5
Any help would be much appreciated. Thanks!
Related Posts with generating an index
testing 1 2 1 2 Code: . xtreg gini_disp kofgi educ urbanpop ln_gdppc ln_gdppc2, fe rob Fixed-effects (with…
Long local macro with line breaksHi I have this long code: local varlist1 "AMAZONAS ANCASH APURIMAC AREQUIPA AYACUCHO CAJAMARCA CALLA…
gllamm - Entering variables in a different order changes the resultsGood evening, I am running two regressions with gllamm, one for each of two control groups, with id…
Adding x-ticks to every graph within a 'by' set for a twoway lineHello, I have a general question about graphs containing a 'by' set. I am attempting to show how uni…
Which model is best for my panel data?Dear Statalist members, I am using an unbalanced panel of 144 countries and 3300 obs to measure the…
Subscribe to:
Post Comments (Atom)
0 Response to generating an index
Post a Comment