standardize_wt | R Documentation |
Performs weighted standardization of x variables. Used in fastridge
.
standardize_wt(x, weights = rep(1/n, n), intercept = TRUE, return.sd = FALSE)
x |
Regressor matrix. |
weights |
Weights. |
intercept |
Logical. If |
return.sd |
Logical. If |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.