Calculates the standardized regression coefficients by common method used for example in SPSS. For translating the formula, functions model.matrix
(for the right-hand side) and model.frame
(for the left-hand side) are used. Additionally the case weights are regarded. So all options saved in the lm
-object are supported.
In the case of models with intercept, the standardization results in the same estimates as lm(..., data = scale(data))
.
In the case of models without intercept, there are two different types of standardization available. (1) Complete standardization (complete.standardization = TRUE
) results in the same estimates as lm(..., data = scale(data))
and therefore results in the same estimates as the same model with intercept. (2) Incomplete standardization (complete.standardization = FALSE
, the standard value) results in the same estimates as lm(..., data = scale(data, center = FALSE))
. This estimation is implemented in IBM SPSS Statistics. For a theoretical justification see Eisenhauer 2003.
Please regard:
Package lm.beta
standardizes the coefficients after estimating them using the standard deviations or similar measures of the used variables. So there are unstandardized and standardized coefficients available simultaneously.
Standardizing before estimating is not (yet) available in this package, but by using the function scale
you can do this by using basic commands. Hereby please regard that the option center
influences the way of interpretation of the intercept.
Package lm.beta
standardizes all coefficients disregarding the use in interpretation. In this version, all types of scales of the variables (metrical, categorical, ...), all types of contrasts, interaction effects and additional terms on both sides of the formula can be handled if lm
can handle them. The sensitive use in interpretation has to be regarded by the user.