Learn R Programming

psycho (version 0.4.91)

standardize.glm: Standardize Coefficients.

Description

Compute standardized coefficients.

Usage

# S3 method for glm
standardize(x, method = "refit", ...)

Arguments

x

A linear model.

method

The standardization method. Can be "refit" (will entirely refit the model based on standardized data. Can take some time) or "agresti".

...

Arguments passed to or from other methods.

See Also

https://think-lab.github.io/d/205/

Examples

Run this code
# NOT RUN {
library(psycho)
fit <- glm(Sex ~ Adjusting, data = psycho::affective, family = "binomial")
fit <- lme4::glmer(Sex ~ Adjusting + (1 | Sex), data = psycho::affective, family = "binomial")

standardize(fit)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab