Announcement

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

  • Comparison before-and-after mean for each individual (t-test)

    Hi, I am a graduate student.

    I have variables indicating a test score and retirement dummy.
    I want pair the before-and-after-retirement scores for the same individuals and compare the means.
    How to do this t-test?
    Please, help me!
    Last edited by Minchul Park; 22 May 2020, 01:12.

  • #2
    You don't show anything, but if your dataset is "wide", then
    Code:
    ttest sco0 = sco1
    and if it's "long, then
    Code:
    anova sco ret pid
    where sco0 and sco1 are test scores, before and after; sco is test score, ret is retirement status and pid is individual.

    Comment

    Working...
    X