fc_plot {failCompare}R Documentation

Plotting failure time and sample survival function

Description

Plotting failure time and sample survival function

Usage

fc_plot(
  time,
  surv,
  censorID,
  group = NULL,
  hist = T,
  surv_curv = T,
  main,
  ylim,
  xlim,
  ylab,
  xlab,
  ...
)

Arguments

time

failure time (x axis)

surv

survival function (y axis)

censorID

binary or logical variable the same length as time indicating censored observations, with zeros or FALSE indicating a cenosored observation

group

grouping variable, limit of 3

hist

logical show histogram of failure times

surv_curv

logical show histogram of failure times

main

title for scatterplot

ylim

y axis limits for survival plot, used to override default of c(0,1)

xlim

x axis limits for survival plot

ylab

y axis limits for survival plot, used to override default of c(0,1)

xlab

x axis limits for survival plot

...

additional argument passed to plot()

Details

plot of type "data" shown by default. For "residual" type plot showing (Kaplan-Meier estimates - parametric model fit), plot a singular model of class=fc_obj.

Value

histogram of failure times and/or scatter plot of sample survival function.


[Package failCompare version 1.0.0 Index]