plot.bcfrailph {bcfrailph}R Documentation

Plot bcfrailph

Description

Generics to print the S3 class bcfrailph.

Usage

## S3 method for class 'bcfrailph'
plot(
  x,
  lty = 1,
  col = 1,
  type = "l",
  xlim = NULL,
  ylim = NULL,
  xlab = NULL,
  main = NULL,
  conf.int = FALSE,
  ...
)

Arguments

x

A class bcfrailph object.

lty

Line type line type 1 is a solid line (the default).

col

Colors to be used for points.

type

The type of plot produced. type="l" Plot lines (the default) and type="p" Plot individual points.

xlim

range of variable on the x axis.

ylim

range of variable on the y axis.

xlab

Axis label for the x axis.

main

main is a string for figure title, placed at the top of the plot in a large font.

conf.int

whether confidence interval is included in the plot the deafault is FALSE.

...

ignored

Details

Calls plot.bcfrailph().

Value

An plot of plot.bcfrailph object.

Note

The plot of cumulative baseline hazard function.

See Also

bcfrailph

Examples

set.seed(24)
simdata<-simbcfrailph(psize=100, cenr= c(0),beta=c(-1),frailty=c("gamma"),
frailpar=c(0.4,0.5),bhaz=c("weibull"),
bhazpar=list(shape =c(0.9), scale = c(2)),
covartype= c("B"),covarpar=list(fargs=c(1),sargs=c(0.5)))
dataa<-simdata$data ## the generated data set.

#fit
bcfit=bcfrailph(Surv(time, censor) ~ X1+frailty(PID),data=dataa)
plot(bcfit)


[Package bcfrailph version 0.1.1 Index]