Learn R Programming

DMAR (version 1.0.0)

tidy.dmar_R2_mixed_effects: Tidy / Glance Methods for R2_mixed_effects Output

Description

Returns the broom-style summary of the marginal and conditional \(R^2\): term ("R2_marginal" or "R2_conditional"), estimate, and, when a bootstrap interval was requested, ci_lower, ci_upper, and conf_level. glance returns the same information in one row per quantity.

Usage

# S3 method for dmar_R2_mixed_effects
tidy(x, ...)

# S3 method for dmar_R2_mixed_effects glance(x, ...)

Value

A data.frame in broom convention.

Arguments

x

A dmar_R2_mixed_effects object returned by R2_mixed_effects.

...

Unused.

Author

Ken Kelley [email protected]

Examples

Run this code
fit <- lme4::lmer(Reaction ~ Days + (Days | Subject),
                  data = lme4::sleepstudy)
res <- R2_mixed_effects(fit)
generics::tidy(res)
generics::glance(res)

Run the code above in your browser using DataLab