plot.mable_reg: Plot mathod for class 'mable_reg'

View source: R/mable-ph-model.r

plot.mable_regR Documentation

Plot mathod for class 'mable_reg'

Description

Plot mathod for class 'mable_reg'

Usage

## S3 method for class 'mable_reg'
plot(
  x,
  y,
  newdata = NULL,
  ntime = 512,
  xlab = "Time",
  which = c("survival", "likelihood", "change-point", "density", "all"),
  add = FALSE,
  ...
)

Arguments

x

a class 'mable_reg' object return by functions such as mable.ph which contains M, coefficients, p, m, x0, tau.n, tau lk, lr.

y

a new data.frame of covariate value(s) as row(s), whose columns are arranged in the same order as in the formula called by the function that returned the object x.

newdata

a new data.frame (ignored if y is included), imputed by the working baseline x0 if both missing.

ntime

number of evaluations of density, survival or cumulative distribution curve to be plotted.

xlab

x-axis label

which

indicates which graphs to plot, options are "survival", "likelihood", "change-point", "density", or "all". If not "all", which can contain more than one options.

add

logical add to an existing plot or not

...

additional arguments to be passed to the base plot function

Author(s)

Zhong Guan <zguan@iusb.edu>


mable documentation built on Aug. 24, 2023, 5:10 p.m.