srlars_ensemble_predict: Ensemble Prediction from a Raw Fit List (Internal)

View source: R/cv.srlars.R

srlars_ensemble_predictR Documentation

Ensemble Prediction from a Raw Fit List (Internal)

Description

Averages the per-model linear predictions of an srlars-style fit list (coefficients, intercepts) over a design matrix X. Used by cv.srlars to score candidate max_share values without going through predict.srlars (which expects a full srlars object, not an intermediate candidate fit).

Usage

srlars_ensemble_predict(X, fit)

Arguments

X

Design matrix.

fit

A list with components coefficients (list of numeric vectors) and intercepts (numeric vector), as returned by computeFinalFit.

Value

Numeric vector of ensemble-averaged predictions.


srlars documentation built on Sept. 23, 2026, 5:10 p.m.