[go: nahoru, domu]

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

feat: life tables #17

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

feat: life tables #17

wants to merge 6 commits into from

Conversation

ESCRI11
Copy link
Contributor
@ESCRI11 ESCRI11 commented May 26, 2023

Implemented life tables. This allows to obtain pooled survival curves. Reference: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5338193/

We obtain the pooled table:

    time n.risk n.event survival_rate       surv strata
1      0      0       0     1.0000000 1.00000000      1
2     10    227       1     0.9955947 0.99559471      1
3     20    220       7     0.9681818 0.96391670      1
4     30    219       2     0.9908676 0.95511381      1
...

And then we can plot the pooled curves
image

Code examples included on dsSurvival/vignettes/simple_script.R

@neelsoumya
Copy link
Owner

@tombisho @StuartWheater can you please also independently test this code and do checks for disclosures/privacy ?

@neelsoumya
Copy link
Owner

@ESCRI11 can you please update the version to be 2.1.5 in the DESCRIPTION file to match the version in dsSurvival?

@ESCRI11
Copy link
Contributor Author
ESCRI11 commented Jul 3, 2023

Yes, done

@neelsoumya
Copy link
Owner

@ESCRI11 I see a man file man/dot-compute_survival_rates.Rd

Is there an R function corresponding to this?

@neelsoumya
Copy link
Owner

@ESCRI11 I see a man file man/dot-compute_survival_rates.Rd

Is there an R function corresponding to this?

If not, can you please remove the .Rd file?

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.

None yet

2 participants