suyusung / arm

Data Analysis Using Regression and Multilevel/Hierarchical Models
23 stars 6 forks source link

`sim` method for `coxph` objects #4

Open mbojan opened 7 years ago

mbojan commented 7 years ago

Can we have a sim() method for coxph objects?

I could submit a PR, but I am not sure what exactly the stat theory is. In particular, I am not sure whether the example from the ARM book generalizes directly to Cox regression. Assuming that object is of class coxph, does it boil down to simply sampling from a multivariate normal with

?