stdBeta | R Documentation |
Updates a model fit by substituting standarized variables.
stdBeta(lmfit)
lmfit |
A fit object of class "lm". |
A fit object, of class "lm"
Doug Hemken, SSCC, Univ. of Wisconsin-Madison
fit <- lm(mpg ~ disp*wt, mtcars) stdBeta(fit) # Does not standardize factors, only numeric variables mtcars$Cyl <- as.factor(mtcars$cyl) fit2 <- lm(mpg ~ disp*Cyl, mtcars) stdBeta(fit2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.