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

bugfix sim.fmsm #82

Closed kkmann closed 4 years ago

kkmann commented 4 years ago

it seems to be important to make sure everything is vectorized properly, otherwise you can get NAs later by indexing

kkmann commented 4 years ago

@chjackson I got several errors with mismatching indices on a data set that I cannot share. After some digging, I identified the two modified lines as critical. works locally for me.