Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

survtab: error in SE and CI of age-standardised survival #135

Closed
kseppa opened this issue Aug 8, 2017 · 2 comments
Closed

survtab: error in SE and CI of age-standardised survival #135

kseppa opened this issue Aug 8, 2017 · 2 comments

Comments

@kseppa
Copy link
Collaborator

kseppa commented Aug 8, 2017

Non-standardised standard error is correct. Standard error of age-standardised survival should be calculated as follows:
st <- survtab(FUT ~ agegr,breaks = list(FUT = seq(0, 5, 1/12)))
st[,SE.r.e2.as:=sqrt(sum(SE.r.e2^2*w^2)/sum(w)^2),by='surv.int']
over age groups agegr with weights w.

Check standard errors of age-standardised survival measures other than Ederer II, too.

WetRobot added a commit that referenced this issue Aug 9, 2017
… misspecified and lead to too large confidence intervals. wrote test to confirm correctness.
WetRobot added a commit that referenced this issue Aug 9, 2017
@WetRobot
Copy link
Collaborator

WetRobot commented Aug 9, 2017

Using survtab example, the blue lines show the old confidence intervals and black lines show the new ones. It is not a insignificant difference!

inflated_confints

@WetRobot
Copy link
Collaborator

WetRobot commented Aug 9, 2017

So this was closed in f19824b.

@WetRobot WetRobot closed this as completed Aug 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants