lm.beta: Standardized Regression Coefficients

lm.betaR Documentation

Standardized Regression Coefficients

Description

Computes the standardized regression coeffients (beta) from an object of class (lm)

Usage

lm.beta(MOD)

Arguments

MOD

MOD is object from lm with the form y ~ x1 + x2 + ...

Value

A "numeric" representing each standardized coefficient from lm() model

Warning

This function does not produce 'correct' standardized coefficients when interaction terms are present

Author(s)

Thomas D. Fletcher t.d.fletcher05@gmail.com

See Also

Make.Z, lm

Examples

us <- USJudgeRatings
names(us)
lm1 <- lm ( CONT ~ INTG + DMNR + DILG, us)
lm.beta(lm1)

# Standardized data (using Make.Z())

usz <- data.frame (Make.Z (us))
lm1.z <- lm ( CONT ~ INTG + DMNR + DILG, usz)

# compare standardized data versus lm.beta

summary(lm1.z)


QuantPsyc documentation built on June 4, 2022, 1:06 a.m.