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

Surv CDISC and estimate cox function #391

Closed
bailliem opened this issue May 31, 2022 · 0 comments · Fixed by #397
Closed

Surv CDISC and estimate cox function #391

bailliem opened this issue May 31, 2022 · 0 comments · Fixed by #397
Assignees
Labels
enhancement New feature or request idea To post an idea for a new plot

Comments

@bailliem
Copy link
Collaborator

bailliem commented May 31, 2022

Idea

An idea to ease the implementation of survival methods (even outside this package) with SDISC data. The big difference from CDSIC standard and the notation used throughout survival analysis in R is the way the outcomes are defined: CDISC creates an indicator for the censoring and the {survival} package (and many others) uses an indicator for the event.

We could export a function similar to survival::Surv() that uses the censoring indicator.

Surv_CNSR <- function(time, event) survival::Surv(time = time, event = 1 - event)

# we can use it like this
survival::coxph(Surv_CNSR(AVAL, CNSR) ~ SEX, adtte)

A bigger bonus if we could somehow set default names survival::coxph(Surv_CNSR(time = AVAL, event = CNSR)

@bailliem bailliem added enhancement New feature or request idea To post an idea for a new plot labels May 31, 2022
@bailliem bailliem self-assigned this May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request idea To post an idea for a new plot
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant