plot.predFrailty: Plot predictions using a Cox or a shared frailty model.

plot.predFrailtyR Documentation

Plot predictions using a Cox or a shared frailty model.

Description

Plots predicted probabilities of event. Confidence intervals are allowed.

Usage

## S3 method for class 'predFrailty'
plot(x, conf.bands=FALSE, pos.legend="topright",
cex.legend=0.7, ylim=c(0,1), Xlab = "Time t", Ylab, ...)

Arguments

x

An object from the 'prediction' function, i.e. a predFrailty class object.

conf.bands

Logical value. Determines whether confidence intervals will be plotted. The default is FALSE.

pos.legend

The location of the legend can be specified by setting this argument to a single keyword from the list '"bottomright"', '"bottom"', '"bottomleft"', '"left"', '"topleft"', '"top"', '"topright"', '"right"' and '"center"'. The default is '"topright"'.

cex.legend

size of the legend. Default is 0.7.

ylim

range of y-axis. Default is from 0 to 1.

Xlab

Label of x-axis. Default is '"Time t"'

Ylab

Label of y-axis.

...

Other unused arguments.

Value

Print one plot with as many curves as the number of profiles.


frailtypack documentation built on Oct. 20, 2024, 1:08 a.m.