
ncvsurv
followed by a prediction of the survival function using
predict.ncvsurv
"plot"(x, alpha=1, ...)
'ncvsurv.func'
object, which is returned by
predict.ncvsurv
if type='survival'
is specified. See
examples.plot
ncvsurv
, predict.ncvsurv
data(Lung)
X <- Lung$X
y <- Lung$y
fit <- ncvsurv(X, y)
# A single survival curve
S <- predict(fit, X[1,], type='survival', lambda=.15)
plot(S, xlim=c(0,200))
# Lots of survival curves
S <- predict(fit, X, type='survival', lambda=.15)
plot(S, xlim=c(0,200))
Run the code above in your browser using DataLab