Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • AAPD average absolute point disagreement

    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.
    Last edited by Riccardo Rasoni; 04 Feb 2025, 07:41.

  • #2
    Agreement with oneself adds 0 to the sum, so the only step needed is adjusting the divisor.

    Comment

    Working...
    X