Transform back multiple regression coefficients to unscaled regression coefficients Original question posed by Mark Seeto on the R mailing list.

Share:

Description

Transform back multiple regression coefficients to unscaled regression coefficients Original question posed by Mark Seeto on the R mailing list.

Usage

1
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

1
2
3
4
5
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)