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
Mata debugging strategiesMight anyone suggest helpful references on strategies for Mata debugging? …
nested loopsI divided a variable in quintiles and I want to summarize a list of variables for each quintiles. I …
Analytical weight in a count model with an exogenous treatmentHello, I have a quick question regarding weights in 'teffects'. Could you please point me towards t…
Dependent variable comes in months, how to build model?I am studying the determinants of unemployment spells. My dependent variable is unemployment spell (…
How do i compute the geometric increase rate of a variable in a panel dataset?Hello everyone, I'm new to Stata and this forum. If I do something wrong, please tell me. I would li…
Subscribe to:
Post Comments (Atom)
0 Response to generating an index
Post a Comment