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
Comparing two coefficients in GMMDear Stata users, I am using the Difference and System GMM approach for estimation and I want to co…
How to subset my dataset based on multiply string filters?My data set is very big, so I copy and paste the first 15 rows as a new exemple excel file. Code: …
esttab output format for mixed interaction modelsDear Statalist, I need output the mixed interaction effects using esttab. However, I have two model…
Panel dataHi everyone, Need help with analysing this data. A description of the data: Individuals are biannua…
omitted categories among the results of the linear fixed effect regressioinsDear All: I am writing a simple linear regression. I have the following code: reg y i.fourthq##i.typ…
Subscribe to:
Post Comments (Atom)
0 Response to ?Longitudinal analysis
Post a Comment