-
Notifications
You must be signed in to change notification settings - Fork 28
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
allow conditional sampling in 'sim.fmsm()' ? #152
Comments
@danielinteractive, you might find this interesting too. |
Here is a suggestion (admittedly super inefficient) of how this could look like. One of the many problems is that it is super slow to not preallocate the return vecors. Maybe chunked pre-allocation could work. Ideally, the functionality could be integrated in the
|
|
No, only the current state ('start' in Edit: also interesting link to #38. |
Hi,
this is related to #150 - I am trying to sample forward from the predictive distribution of an individual given current state and sojourn time in that state for a multistate model.
sim.fmsm()
only seems to support sampling conditional on last state but cannot accept the respective sojourn time ('start' paramter insimulate.flexsurvreg()
).Would this be feasible to add to
sim.fmsm()
? I suspect the critical lines are aroundhttps://github.com/chjackson/flexsurv-dev/blob/96dfe2ea0a360d4a79996e3b390d7cd27e0ab265/R/mstate.R#L862
The text was updated successfully, but these errors were encountered: