Learn R Programming

reghelper (version 0.3.3)

beta: Standardized coeffients of a model.

Description

beta is a generic function for producing standardized coefficients from regression models.

Usage

beta(model, ...)

Arguments

model

A fitted linear model of type 'lm', 'glm' or 'aov'.

...

Additional arguments to be passed to the particular method for the given model.

Value

The form of the value returned by beta depends on the class of its argument. See the documentation of the particular methods for details of what is produced by that method.

See Also

beta.lm, beta.glm, beta.aov

Examples

Run this code
# NOT RUN {
# iris data
model1 <- lm(Sepal.Length ~ Petal.Length + Petal.Width, iris)
beta(model1)  # all three variables standardized

model2 <- lm(Sepal.Width ~ Petal.Width + Species, iris)
beta(model2, skip='Species')  # all variables except Species standardized
# }

Run the code above in your browser using DataLab