Dear Users,
in order to estimate a time mortality trend I applied a regression where log mortality rate is the dependent variable and calendar year is the indipendent one;
in my dataset, available calendar years span from 1980 to 2013. Calendar years have been fitted using spline terms:
gen ln_tsd2=ln(tsd2)
rcsgen year, gen(rcs) orthog df(3)
regress ln_tsd2 rcs*
After that, predicted log rates have been obtained by:
predict pred
I'd like to obtain predicted rate ratios (and CI) comparing each year predicted rate to a reference year (e.g. 1997) rate.
My question:
Is there a way to obtain these year rate ratios by using "predictnl"?
Thanks for your attention,
best wishes
Anna Maria
in order to estimate a time mortality trend I applied a regression where log mortality rate is the dependent variable and calendar year is the indipendent one;
in my dataset, available calendar years span from 1980 to 2013. Calendar years have been fitted using spline terms:
gen ln_tsd2=ln(tsd2)
rcsgen year, gen(rcs) orthog df(3)
regress ln_tsd2 rcs*
After that, predicted log rates have been obtained by:
predict pred
I'd like to obtain predicted rate ratios (and CI) comparing each year predicted rate to a reference year (e.g. 1997) rate.
My question:
Is there a way to obtain these year rate ratios by using "predictnl"?
Thanks for your attention,
best wishes
Anna Maria
Comment