Hi everybody, I'm currently working on a survey data and I want to use an interesting instrument. Though, I can't find any code online, and I'm constantly failing in making my own one.
Do you have an idea on how to proceed?
I'm using STATA/MP 17.0
My dataset consists on a rotating panel with 54 waves (monthly, my current "t"). Basically, I want to find the average absolute point disagreement measure for every respondent, at a precise time, for a variable y (that I have).
The formula is the following:
\[
AAPD_{i,t}=\frac{1}{N_{t}-1}\sum_{j\neq i}^{}\left| y_{j,t}-y_{i,t} \right|
\]
My problem is in obtaining, for every individual, the sum with every other respondent but himself/herself.
I'm glad for all your answers
thanks.
Do you have an idea on how to proceed?
I'm using STATA/MP 17.0
My dataset consists on a rotating panel with 54 waves (monthly, my current "t"). Basically, I want to find the average absolute point disagreement measure for every respondent, at a precise time, for a variable y (that I have).
The formula is the following:
\[
AAPD_{i,t}=\frac{1}{N_{t}-1}\sum_{j\neq i}^{}\left| y_{j,t}-y_{i,t} \right|
\]
My problem is in obtaining, for every individual, the sum with every other respondent but himself/herself.
I'm glad for all your answers
thanks.

Comment