This function is called by survsim.plot and is not intended to be used by itself.
Usage
data.plot(data, xb, bins = 30)
Arguments
data
A data frame of simulated duration data in which the duration variable is called y.
Generally, this data frame is taken from the data attribute of the sim.survdata
function
xb
A vector of the linear predictors, combining the covariates and coefficients from the simulation.
Generally, this data frame is taken from the xb attribute of the sim.survdata
function
bins
The number of bins to draw in each histogram
Value
A figure of class "gg" and "ggplot"
Details
This function produces three histograms, one of the simulated durations, one of the linear predictors,
and one of the exponentiated linear predictors. It uses facet_wrap within
a call to ggplot to arrange the plots.