plot.Cox {MMAD}R Documentation

Plot the Cox object

Description

Plot the Cox object

Usage

## S3 method for class 'Cox'
plot(
  x,
  xlab = "Time",
  ylab = "Cumulative hazard",
  type = "s",
  lty = 1,
  lwd = 1,
  col = gray(0),
  digits = 4,
  ...
)

Arguments

x

The Cox object, see CoxMM.

xlab

x label, default is 'Time'.

ylab

y label, default is 'Cumulative hazard'.

type

type value, default is 's'.

lty

lty value for line, default is 1.

lwd

line width, default is 1.

col

color parameter, default is gray(0).

digits

The digits after the decimal point, default = 4.

...

Additional arguments

Value

the dataframe of 'Time' and accumulative hazard \Lambda.

Examples

library(survival)
result <- CoxMM(Surv(time, status) ~ age + sex, lung)

plot(result)



[Package MMAD version 1.0.0 Index]