scaleBack.lm: Transform back multiple regression coefficients to unscaled...

View source: R/scaleBack.lm.R

scaleBack.lmR 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)

msuzen/R1magic documentation built on Aug. 31, 2023, 1:20 p.m.