Learn R Programming

DMAR (version 1.0.0)

tidy.mlmr: An Mlmr Fit

Description

Returns a one-row-per-coefficient data.frame in the column convention used by the broom ecosystem (term, estimate, se, statistic, p_value, and optionally ci_lower, ci_upper). Use as.data.frame() on the fit for the DMAR-style table (snake_case columns) stored at fit$coef_table.

Usage

# S3 method for mlmr
tidy(x, conf.int = FALSE, conf_level = NULL, standardized = FALSE, ...)

Value

A data.frame.

Arguments

x

An object of class "mlmr".

conf.int

Logical; if TRUE, append ci_lower and ci_upper columns using the confidence intervals already computed at fit time. Defaults to FALSE.

conf_level

Ignored; the confidence interval comes from the fit object at x$conf_level. Present for compatibility with the broom generic.

standardized

Logical; if TRUE and effect sizes were computed at fit time, append a std_estimate column. Defaults to FALSE.

...

Unused.

Author

Ken Kelley [email protected]

Examples

Run this code
fit <- mlmr(t6_paragraph_comprehension ~ t5_general_information +
              t9_word_meaning,
            data = holzinger_swineford, ci_method = "wald")
generics::tidy(fit)
generics::tidy(fit, conf.int = TRUE)
generics::tidy(fit, conf.int = TRUE, standardized = TRUE)

Run the code above in your browser using DataLab