Good evening, and thanks in advance for any help you can provide.
I'm trying to perform meta-analysis of implant survival following two types of hip replacement, based on published Kaplan-Meier estimates. I've generated Forest plots using metan that give a combined estimate of survival, with confidence intervals, at each year up to 7 years.
In order to present this data in a more accessible manner, I would like to create a line graph (effectively a survival curve) with 95% confidence intervals. The X-axis would be time, and the Y-axis would be survival, as calculated from my meta-analyses.
Whilst it might be possible to use exceptionally clever code to do this in a very neat manner, is there any way of just telling STATA what the coordinates of my desired points are, and their confidence intervals? Ideally I would like to be able to plot both hip replacement types on the same chart.
In case it helps, here is the code for one of my Forest plots:
Thanks again
Hamish
I'm trying to perform meta-analysis of implant survival following two types of hip replacement, based on published Kaplan-Meier estimates. I've generated Forest plots using metan that give a combined estimate of survival, with confidence intervals, at each year up to 7 years.
In order to present this data in a more accessible manner, I would like to create a line graph (effectively a survival curve) with 95% confidence intervals. The X-axis would be time, and the Y-axis would be survival, as calculated from my meta-analyses.
Whilst it might be possible to use exceptionally clever code to do this in a very neat manner, is there any way of just telling STATA what the coordinates of my desired points are, and their confidence intervals? Ideally I would like to be able to plot both hip replacement types on the same chart.
In case it helps, here is the code for one of my Forest plots:
#delimit ;
metan dmc_km_allcause dmc_km_allcause_lower_ci dmc_km_allcause_upper_ci if dmc_mean_fu == 12 ,
nohet effect(Survival) fixedi
xlabel(0.75, 1)
astext(50)
boxopt(mfcol(gs50%50) )
olineopt(lc(black)lp(dash))
texts(95)
lcols(first_author)
title("Forest plot of estimates for reported survival of dual mobility constructs at one year" , c(black) margin(b+3) size (small))
xtitle ("Survival estimate", c(black) margin(b+4) size (vsmall))
graphregion( sty(none) c(white) ls(none) istyle(none) ic(white) margin(medium) )
plotregion( sty(none) c(white) ls(none) istyle(none) ic(white) margin(medium) )
xsize(4.2126)
name(cs_metan_15,replace)
;
metan dmc_km_allcause dmc_km_allcause_lower_ci dmc_km_allcause_upper_ci if dmc_mean_fu == 12 ,
nohet effect(Survival) fixedi
xlabel(0.75, 1)
astext(50)
boxopt(mfcol(gs50%50) )
olineopt(lc(black)lp(dash))
texts(95)
lcols(first_author)
title("Forest plot of estimates for reported survival of dual mobility constructs at one year" , c(black) margin(b+3) size (small))
xtitle ("Survival estimate", c(black) margin(b+4) size (vsmall))
graphregion( sty(none) c(white) ls(none) istyle(none) ic(white) margin(medium) )
plotregion( sty(none) c(white) ls(none) istyle(none) ic(white) margin(medium) )
xsize(4.2126)
name(cs_metan_15,replace)
;
Hamish
Comment