## S3 method for class 'flexsurvreg':
plot(x, X=NULL, type="survival", tmax=NULL,
col.obs="black", lty.obs=1, lwd.obs=1,
col.fit="red", lty.fit=1, lwd.fit=2, add=FALSE,...)flexsurvreg, representing a fitted
survival model object.matrix(c(1,2),nrow=2) if there
is only one covariate in the model, and we w"survival" for survival, to be plotted against
Kaplan-Meier estimates from plot.survfit. "cumhaz" for cumulative hazard, plotted against transformed
Kapla
TRUE, add lines to an existing plot,
otherwise new axes are drawn.plot.survfit or muhaz, for
example, to control the smoothness of the nonparametric hazard
estimates. The flexsurvreg