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

Description Usage Arguments Note Author(s) Examples

View source: R/scaleBack.lm.R

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)


R1magic documentation built on May 19, 2017, 8:17 p.m.
Search within the R1magic package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.