Given a fit or coefficients, compute the deciance (-2 log partial likelihood) for right-censored survival data
coxnet.deviance(pred = NULL, y, x = 0, offset = NULL,
weights = NULL, beta = NULL)
matrix of predictions
a survival response matrix, as produced by Surv
optional x
matrix, if pred
is NULL
optional offset
optional observation weights
optional coefficient vector/matrix, supplied if pred=NULL
a single or vector of deviances
coxnet.deviance
computes the deviance for a single prediction, or a matrix of predictions
coxgrad