npplot {NPCox} | R Documentation |
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)
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
Value
The plot of nonparametric coefficients function 'npcox' or 'spcox'.
Examples
data(pbc)
pbc = pbc[(pbc$time < 3000) & (pbc$time > 800), ]
Z = pbc[,c("age","edema")]
colnames(Z) = c("age","edema")
del = 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)
[Package NPCox version 1.2 Index]