sambrilleman / simsurv

Simulate Survival Data
GNU General Public License v3.0
23 stars 8 forks source link

Add function to simulate based on fitted model #6

Open sambrilleman opened 6 years ago

sambrilleman commented 6 years ago

A suggestion from useR 2018...

To add a function that takes a fitted model object (for example a model estimated using survreg) and then extract the model specification and the estimated parameter values, and then use those as the true parameters for simulating event times.

A suggested use case for this type of function is for generating teaching examples. The estimated model might be fit to data that cannot be used in teaching (e.g. if it isn't publically available), but the simulated data would be ok to use in teaching.