This function takes the output of
sim.survdata and plots the baseline
failure PDF, the baseline failure CDF, the baseline survivor function, and the baseline hazard
function that were generated and used to simulate the data. The function also produces histograms
of the simulated durations, the linear predictor, and the exponentiated linear predictor.
An object of class "
The number of bins to draw in each histogram. Ignored if
A challenge that can limit research to develop methods to analyze survival data is that a
pre-specified baseline hazard function must be used to generate simulated data, which contradicts the
Cox proportional hazards model's feature of circumventing the hazard to estimate coefficients. The
flexible-hazard method developed by Harden and Kropko (2018) and implemented in
allows for the simulation of duration data without assuming a particular parametric form for hazard.
survsim.plot is useful for visualizing the baseline functions, including hazard, that result from
this algorithm for a particular draw of simulated duration data. The function uses
to create line plots for the baseline failure PDF, the baseline failure CDF, the baseline survivor function,
and the baseline hazard function over time. The baseline functions and time are attributes of the
A figure of class
type="hist", and of
Jonathan Kropko <email@example.com> and Jeffrey J. Harden <firstname.lastname@example.org>
Harden, J. J. and Kropko, J. (2018). Simulating Duration Data for the Cox Model. Political Science Research and Methods https://doi.org/10.1017/psrm.2018.19
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.