Optional covariate matrix. If NULL, fitted values will be obtained
for the training data, as long as the model was fit with the argument
keepTrainingData=TRUE.
whichLambda
Optional index number of the desired lambda value within
the solution path sequence.
criteria
Selects the best lambda value by AIC or BIC. Only used
if whichLambda=NULL.
type
The type of prediction required. Type "response" returns a
matrix of fitted probabilities. Type "class" returns a vector containing the
class number with the highest fitted probability. Type "link" returns a
matrix of linear predictors.