plot.tpchreg {eha}R Documentation

Plots output from a tpchreg regression

Description

Plot(s) of the hazard, cumulative hazards, and/or the survivor function(s) for each stratum.

Usage

## S3 method for class 'tpchreg'
plot(
  x,
  fn = c("haz", "cum", "sur"),
  log = "",
  main = NULL,
  xlim = NULL,
  ylim = NULL,
  xlab = "Duration",
  ylab = "",
  col,
  lty,
  printLegend = TRUE,
  ...
)

Arguments

x

A tpchreg object

fn

Which functions should be plotted? Default is the hazard function.

log

character, "" (default), "y", or "xy".

main

Header for the plot

xlim

x limits

ylim

y limits

xlab

x label

ylab

y label

col

Color(s) for the curves. Defaults to black.

lty

Line type for the curve(s). Defaults to 1:(No. of strata).

printLegend

Logical, or character ("topleft", "bottomleft", "topright" or "bottomright"); if TRUE or character, a legend is added to the plot if the number of strata is two or more.

...

Extra parameters passed to 'plot' and 'lines'.

Value

No return value.

Author(s)

Göran Broström

See Also

tpchreg


[Package eha version 2.11.4 Index]