scaleBack.lm {R1magic} | R Documentation |
Transform back multiple regression coefficients to unscaled regression coefficients Original question posed by Mark Seeto on the R mailing list.
Description
Transform back multiple regression coefficients to unscaled regression coefficients Original question posed by Mark Seeto on the R mailing list.
Usage
scaleBack.lm(X, Y, betas.scaled)
Arguments
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 |
Note
2015-04-10
Author(s)
M.Suzen
Examples
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)
[Package R1magic version 0.3.4 Index]