Announcement

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

  • How can I calculate how many of my panel persons switched their dummy status between observation periods?

    Dear all,

    I have a unbalanced Panel data set with approx. 10000 panel persons and 3 observation periods.
    How can I calculate how many panel persons changed from 0 to 1 respectively 0 to 1 in a particular dummy variable during the observation period ?


    For example: 0 = single; 1= being in a relationship

    How many …?
    => ...persons stayed single
    => ...persons stayed in a relationship
    => ...persons changed status from single to relationship
    => ...persons changed status from relationship to single
    => ...persons changed their status twice


    Thanks a lot for your help!


    Kind regards,
    Lena

  • #2
    Lena:
    see -help xttrans-.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      It works- Thank you for your help!

      Comment

      Working...
      X