lm.beta | R Documentation |
Computes the standardized regression coeffients (beta) from an object of class (lm)
lm.beta(MOD)
MOD |
MOD is object from |
A "numeric" representing each standardized coefficient from lm() model
This function does not produce 'correct' standardized coefficients when interaction terms are present
Thomas D. Fletcher t.d.fletcher05@gmail.com
Make.Z
, lm
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.