Learn R Programming

cxreg (version 1.0.0)

buildPredmat.default: Build Prediction Matrix (Default Method)

Description

These are not intended for use by users. Constructs a prediction matrix for cross-validation folds, using the coefficient paths in outlist. Inspired by internal functions in the glmnet package.

Usage

# S3 method for default
buildPredmat(outlist, lambda, x, foldid, alignment, ...)

Value

A numeric matrix of predicted values with dimensions nrow(x) by length(lambda). Rows correspond to observations and columns correspond to penalty values.

Arguments

outlist

A list of fitted models.

lambda

A vector of penalty values.

x

A predictor matrix.

foldid

Fold identifiers.

alignment

Alignment method (not used).

...

Other arguments