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

Covariate "time of entry in the state" in clock reset transitions #108

Open
caterinagregorio opened this issue May 31, 2023 · 2 comments
Open

Comments

@caterinagregorio
Copy link

Hello,

According to the current implementation of the package, is it possible to consider that the transition hazard in a iCTSTMs under the "clock reset" time scale depends also on the time at which the subject entered the state?

Thank you!

@mclements
Copy link
Collaborator

To my knowledge, this is not currently implemented.

In principle, this is possible, but it would need a mechanism to pass two time scales to the time-to-event models.

Devin: how difficult would it be to implement the two time scales?

@dincerti
Copy link
Member

dincerti commented Jun 8, 2023

The general solution is to allow for covariates that dynamically update during the individual-level simulation. You would ideally want users to be able to write custom functions to update the covariates; however, thats would require some refactoring because the simulation is written in C++ at the moment and passing an R function to each iteration of a C++ for loop is highly inefficient.

@mclements how were you envisioning the two time scales would work?

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

3 participants