Learn R Programming

midasml (version 0.0.6)

updatecvmsd: Updates the cross-validation error estimates

Description

Updates the cross-validation error estimates

Usage

updatecvmsd(cvm, cvsd_fold, nlam, est_new, k, y_val, ZX_val)

Arguments

cvm

current cvm estimates.

cvsd_fold

current cvsd_fold estimates.

nlam

number of \(\lambda\)'s to use in the regularization path.

est_new

p by nlam matrix sequence of estimates, where p is the total dimension of the data matrix and nlam is the number of \(\lambda\)'s to use in the regularization path.

k

fold index.

y_val

response used in validation.

ZX_val

y_val data matrix used in validation.

Value

updated cross-validation error estimates.