diag_baseline: Compare parametric baseline distributions with semi-parametric baseline
Description
Creates plots to diagnosis fit of different choices of parametric baseline model. Plots the semi paramtric model against different choices of parametric models.
Either a formula or a model fit with ic_sp or ic_par
data
data. Unnecessary if object is a fit
model
type of model. Choices are 'ph' or 'po'
dists
parametric baseline fits
cols
colors of baseline distributions
weights
case weights
lgdLocation
where legend will be placed. See ?legend for more details
useMidCovars
Should the distribution plotted be for covariates = mean values instead of 0
Details
If useMidCovars = T, then the survival curves plotted are for fits with the mean covariate value, rather than 0. This is because often the baseline distribution (i.e. with all covariates = 0) will be far away from the majority of the data.