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
A package for Nearest Neighbor estimation with panel data?Hello. I'm trying to estimate an effect using panel data with three time periods (0, 1 and 2). Time …
integrated time dependent area under the curveHello Is there any command in stata to calculate the integrated time dependent area under the curve…
ml command with estimated coefficients (rangestat/runby?)Dear All, Given the data set Code: * Example generated by -dataex-. To install: ssc install dataex…
Add leading zero before decimal in scalarsDear All, I am writing to ask a quick question on making a small adjustment to scalars. Code: sy…
Converting incident data to weekly ratesHi, I've got a data handling challenge that I was hoping to get some assistance with. The data I'm …
Subscribe to:
Post Comments (Atom)
0 Response to generating an index
Post a Comment