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.
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.