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

censoring when simulating data #108

Closed
adibender opened this issue Jun 5, 2019 · 2 comments
Closed

censoring when simulating data #108

adibender opened this issue Jun 5, 2019 · 2 comments
Assignees

Comments

@adibender
Copy link
Owner

adibender commented Jun 5, 2019

One thing we (not necessarily @pkopper) should think about in the context of #106 is censoring.

So far I always added censoring manually after the call to sim_pexp. The question is if that could be usefully integrated within sim_pexp, potentially as a special case of CR (where two linear predictors/event times are generated but independent of each other and the smaller one is selected) or if its better to add a function add_censoring that can be called after generating the survival times, e.g.

The former would require some way to specify if rhs_censoring is a competing risk or a censoring specification, for which I don't see an easy way to do...

data %>% sim_pexp(~rhs_event|rhs_censoring)
# or
data %>% sim_pexp(~rhs) %>% add_censoring(~rhs_censoring)
@pkopper
Copy link
Collaborator

pkopper commented Jun 6, 2019

Thank you for that note.
I tend to the first suggestion of your intuitively as this is as I would implement it in the non-PAMM set up, too.
However, I'll have a look at it and assign myself.

@pkopper pkopper self-assigned this Jun 6, 2019
@adibender
Copy link
Owner Author

this will go into https://github.com/adibender/simpexp

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