ggstatsplot (version 0.0.4)

lm_effsize_ci: Confidence intervals for partial eta-squared and omega-squared for linear models.

Description

This function will convert a linear model object to a dataframe containing statistical details for all effects along with partial eta-squared effect size and its confidence interval.

Usage

lm_effsize_ci(object, effsize = "eta", partial = TRUE, conf.level = 0.95,
  nboot = 1000)

Arguments

object

The linear model object (can be of class lm, aov, or aovlist).

effsize

Character describing the effect size to be displayed: "eta" (default) or "omega".

partial

Logical that decides if partial eta-squared or omega-squared are returned (Default: TRUE).

conf.level

Numeric specifying Level of confidence for the confidence interval (Default: 0.95).

nboot

Number of bootstrap samples for confidence intervals for partial eta-squared and omega-squared (Default: 1000).

Value

A dataframe with results from stats::lm() with partial eta-squared, omega-squared, and bootstrapped confidence interval for the same.

Examples

Run this code
# NOT RUN {
# lm object
# lm_effsize_ci(object = stats::lm(formula = wt ~ am * cyl, data = mtcars),
# effsize = "omega",
# partial = TRUE)

# aov object
# lm_effsize_ci(object = stats::aov(formula = wt ~ am * cyl, data = mtcars),
# effsize = "eta",
# partial = FALSE)

# }

Run the code above in your browser using DataLab