scaleBack.lm | R Documentation |
Transform back multiple regression coefficients to unscaled regression coefficients Original question posed by Mark Seeto on the R mailing list.
scaleBack.lm(X, Y, betas.scaled)
X, |
unscaled design matrix without the intercept, m by n matrix |
Y, |
unscaled response, m by 1 matrix |
betas.scaled, |
coefficients vector of multiple regression, first term is the intercept |
2015-04-10
M.Suzen
set.seed(4242)
X <- matrix(rnorm(12), 4, 3)
Y <- matrix(rnorm(4), 4, 1)
betas.scaled <- matrix(rnorm(3), 3, 1)
betas <- scaleBack.lm(X, Y, betas.scaled)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.