scale_oos_covars: Scale an out-of-sample covariate vector

Description Usage Arguments Value

View source: R/cv_functions.R

Description

Scale an out-of-sample covariate vector

Usage

1
scale_oos_covars(X, params)

Arguments

params

A k-by-2 matrix containing the means of the in-sample covariate matrix in the first column and the sds of the in-sample covariate matrix in the second column.

x

A covariate matrix.

Value

The scaled covariate vector.


atredennick/modselr documentation built on Dec. 11, 2020, 10:09 p.m.