Learn R Programming

NPCox (version 1.3)

npplot: Nonparametric and semiparametric Cox regression model.

Description

Plot of time-varying coefficient estimated through function 'npcox' or 'spcox'.

Usage

npplot(temp, xrange = NULL, CIlevel = 0.95)

Value

The plot of nonparametric coefficients function 'npcox' or 'spcox'.

Arguments

temp

Estimation result from function 'npcox' or 'spcox'.

xrange

Illustration range for x-axis.

CIlevel

The default confidence level stands at 0.95.

Details

This is some description of this function.

This is the plot function for

Examples

Run this code
data(pbc)
pbc = pbc[(pbc$time < 3000) & (pbc$time > 800), ] 
Z   = pbc[,c("age","edema")]
colnames(Z) = c("age","edema")
del = sign(pbc$status)
tim = pbc$time
res = npcox(cva = Z,delta = del, obstime = tim, bandwidth = 500)
op  = par(mfrow = c(1,2))
npplot(res)
par(op)

Run the code above in your browser using DataLab