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
Establishing parallel trends in a probit differences-in-differences modelHi, I have a question that's slightly more conceptual than related to direct stata output. I unders…
Interpreting Logit transformation of dependent variableHello all, In my master thesis I am using difference and system gmm. The problem is that the depende…
generate an identifier variable that changes with every 3 observations?Hi folks. I have a dataset of this form: Code: * Example generated by -dataex-. To install: ssc in…
problem with legendUsing the below codes, I could create three graphs and combine them into one nice graph. As shown in…
Tabout not exporting confidence intervalsHello, I am trying to use tabout to export basic tables to Excel. I would like to include both perc…
Subscribe to:
Post Comments (Atom)
0 Response to generating an index
Post a Comment