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

Added mean + restricted mean to summary.flexsurv, exported rsurvspline #23

Merged
merged 3 commits into from
Feb 13, 2017
Merged

Conversation

jrdnmdhl
Copy link
Contributor

Added calculations of unrestricted and restricted mean survival to summary.flexsurv. This is done via the base R 'integrate' function. It is a bit slow, though I believe this is unavoidable unless done analytically.

I also exported 'rsurvspline' since this would potentially be useful to access from other packages for simulation.

@chjackson
Copy link
Owner

Thanks Jordan - looks useful and I'll merge. I think it would also be worth implementing the analytic means or restricted means for distributions where they exist - do you fancy having a go?

@chjackson chjackson merged commit dccf1ea into chjackson:master Feb 13, 2017
Copy link
Owner

@chjackson chjackson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - omitting rsurvspline from the exports was just an oversight.

@jrdnmdhl
Copy link
Contributor Author

Glad to help. Will take a look at analytical means to see what is available.

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

Successfully merging this pull request may close these issues.

2 participants