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"))
Related Posts with ?Longitudinal analysis
How to stop the loop from terminating due to missing variables?Hi Statalist, Please consider the following sample data: Code: * Example generated by -dataex-. To…
Question on tsfilterI am a beginner with tsfilter in stata and have strange behavior when trying. I have a dataset with …
Help needed with replicating a studyHi all, I'm replicating the study of Barua et al. called Earnings Management Using Discontinued Ope…
Negative Spatial autocorrelationDear All, I hope I can get a suggestion from someone in the field of spatial econometrics, although…
question about categorizing variableHi. I'm beginer with STATA. I'm having a problem with categorizing variable. I wanted to categorize …
Subscribe to:
Post Comments (Atom)
0 Response to ?Longitudinal analysis
Post a Comment