
ncvreg survival backend
ncvreg-backend.RdWrappers for Cox models fitted with ncvreg.
Usage
fit.ncvsurv(response, x, cplx, ...)
complexity.cv.ncvsurv(response, x, full.data, ...)
# S3 method for class 'ncvsurv'
predictProb(object, response, x, times, complexity = NULL, ...)
# S3 method for class 'ncvsurv'
PLL(object, newdata, newtime, newstatus, complexity = NULL, ...)Arguments
- response
survival response as a
Survobject or a two-columntime/statusmatrix.- x
covariate matrix.
- cplx
selected
lambdavalue.- full.data
full data frame, accepted for the
peperrcomplexity-function contract.- object
a fitted
ncvsurvobject.- times
evaluation times for survival probabilities.
- complexity
selected
lambdavalue.- newdata
new covariate matrix.
- newtime
vector of follow-up times.
- newstatus
vector of event indicators.
- ...
additional arguments passed to
ncvsurv,cv.ncvsurv, orpredict.
Value
Fitted ncvsurv objects, selected lambda values, survival-probability matrices, and numeric predictive partial log-likelihood values, respectively.
Details
The implementation first tries the native ncvreg survival prediction method. If that is unavailable for the installed version, it falls back to a Breslow baseline built from stored training data and linear predictors.