Announcement

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

  • ?Longitudinal analysis

    I am working on some clinical data looking at echocardiographic features of patients after surgery. The patients have varying numbers of postop echos at varying time intervals. I want to compare a variable over time in two groups. For example sequential measures of a gradient across a heart valve over time
    I can regress a line in the data, but I want to compare the rate of change in the two groups over time.
    Is this a longitudinal data question?

    reshape long grad time, i(id replacement) j(str)
    drop if time==.
    twoway (scatter grad time if replacement==0, mcolor(blue) msize(tiny)) (scatter grad time if replacement==1, mcolor(red) msize(tiny)) ///
    (lfit grad time if replacement==0, lcolor(blue)) (lfit grad time if replacement==1, lcolor(red)), ytitle(Gradient (mmHg)) ///
    ytitle(, orientation(vertical)) xtitle(Time (years)) xlabel(#14) legend(order(1 "Repair" 2 "Replacement"))


  • #2
    Fraser:
    if, in both groups, the same sample of patients undergo postop echos at different (and theoretically equally spaced) points in time, you have a longitudinal study design.
    If the regressand you're interested in is continous, you may want to consider -xtreg-.
    Kind regards,
    Carlo
    (StataNow 18.5)

    Comment

    Working...
    X