npplot {NPCox} | R Documentation |
Plot of time-varying coefficient estimated through function 'npcox' or 'spcox'.
npplot(temp, xrange = NULL, CIlevel = 0.95)
temp |
Estimation result from function 'npcox' or 'spcox'. |
xrange |
Illustration range for x-axis. |
CIlevel |
The default confidence level stands at 0.95. |
This is some description of this function.
This is the plot function for
The plot of nonparametric coefficients function 'npcox' or 'spcox'.
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)