Learn R Programming

psycho (version 0.4.91)

get_R2.merMod: R2 and adjusted R2 for GLMMs.

Description

R2 and adjusted R2 for GLMMs.

Usage

# S3 method for merMod
get_R2(fit, ...)

Arguments

fit

A GLMM.

...

Arguments passed to or from other methods.

Examples

Run this code
# NOT RUN {
library(psycho)

fit <- lmerTest::lmer(Tolerating ~ Adjusting + (1 | Sex),
  data = psycho::affective
)
fit <- lme4::glmer(Sex ~ Adjusting + (1 | Salary),
  data = na.omit(psycho::affective), family = "binomial"
)

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

Run the code above in your browser using DataLab