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
Unable to access elements of a local macroHi I wanted to store the unique values of a variable schoolid_2 in a local macro. So ran the follow…
Command "do" does not work although working directory is specifiedDear Statalist Users, I am trying to run multiple do files in a row by using the command "do" (file…
IVTOBIT with fixed effectsHello Friends, My name is Goel Miranda, right now im trying to estimate a gravity equation for bila…
Margins at() following cmxtmixlogit / cmclogit?Hi all, long time reader first time poster here. I am using StataSE 16.1 on MacOS 11.2.3. I'm analyz…
Fixed effects model - comparing the coefficients of two different regressionsDear All, I used a fixed effect regression model through the following equations to evaluate the im…
Subscribe to:
Post Comments (Atom)
0 Response to ?Longitudinal analysis
Post a Comment