chjackson / flexsurv

The flexsurv R package for flexible parametric survival and multi-state modelling
http://chjackson.github.io/flexsurv/
54 stars 28 forks source link

[WIP] fix "number of items to replace is not a multiple of replacement length" for sim.fmsm #83

Closed kkmann closed 3 years ago

kkmann commented 4 years ago

I still get a 'number of items to replace is not a multiple of replacement length' when running the 'fixed' version.

I cannot pinpoint it down to a particular line, but removed all debugging infor and commented the individual steps. This version runs without any issues.

kkmann commented 4 years ago

@chjackson I think it would be convenient to incorporate an option to use use normboot.flexsurvreg to bootsrap the parameters used in sim.fmsm I am a abit unsure about how to handle tcov

chjackson commented 4 years ago

I'm having difficulty identifying what the substantive changes are here, other than reformatting and commenting. I don't want to apply a patch unless I can see the specific bug that is being fixed!