Description Usage Arguments Value Author(s)
View source: R/utility_functions.R
Function that standardizes the data before running the fitting
algorithm. This is necessary in all penalization methods so that the effect
of a given penalty is the same for each predictor. This is used in the
shim
function
1 | standardize(x, y, center = TRUE, normalize = TRUE)
|
x |
Design matrix of dimension |
y |
response variable (matrix form) of dimension |
normalize |
Should |
intercept |
Should |
list of length 5:
centered and normalized x
matrix
centered y
numeric vector
numeric vector of column means of x
matrix
mean of y
standard deviations (using a divisor of n
observations) of columns of x
matrix
Sahir Bhatnagar
Maintainer: Sahir Bhatnagar sahir.bhatnagar@mail.mcgill.ca
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.