Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/baseline.plot.R
This function is called by
survsim.plot and is not intended to be used by itself.
A data frame containing five variables: time, and the values of the baseline failure PDF,
baseline failure CDF, baseline survivor function, and baseline hazard function at each time point.
Generally, this data frame is taken from the
This function reshapes the data for easy faceting with
a call to
ggplot. Each function is plotted on the y-axis and time is plotted on
the x-axis using
A figure of class
Jonathan Kropko <firstname.lastname@example.org> and Jeffrey J. Harden <email@example.com>
simdata <- sim.survdata(N=1000, T=100, num.data.frames=1) baseline.plot(simdata$baseline)
Loading required package: rms Loading required package: Hmisc Loading required package: lattice Loading required package: survival Loading required package: Formula Loading required package: ggplot2 Attaching package: ‘Hmisc’ The following objects are masked from ‘package:base’: format.pval, units Loading required package: SparseM Attaching package: ‘SparseM’ The following object is masked from ‘package:base’: backsolve Loading required package: mgcv Loading required package: nlme This is mgcv 1.8-33. For overview type 'help("mgcv-package")'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.