standardize_wt: Weighted Standardization

Description Usage Arguments Value

View source: R/utils.R

Description

Performs weighted standardization of x variables. Used in fastridge.

Usage

1
standardize_wt(x, weights = rep(1/n, n), intercept = TRUE, return.sd = FALSE)

Arguments

x

Regressor matrix.

weights

Weights.

intercept

Logical. If TRUE, adds an intercept.

return.sd

Logical. If TRUE, it returns standard errors for the means.

Value

If return.sd == FALSE, it gives the matrix of standardized regressors. If return.sd == TRUE, then it returns the vector of standard errors of the means of the variables.


penppml documentation built on Sept. 9, 2021, 9:09 a.m.