Learn R Programming

cxreg (version 1.0.0)

buildPredmat: Build Prediction Matrix

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

buildPredmat(outlist, lambda, x, foldid, alignment, ...)

Value

The return value depends on the method; for the default method, see buildPredmat.default.

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