print_model_comp: Typeset Statistical Results from Model Comparisons

View source: R/print_model_comp.R

print_model_compR Documentation

Typeset Statistical Results from Model Comparisons

Description

This function is the workhorse of the apa_print() method for model comparisons. It takes a data frame of class apa_model_comp and produces strings to report the results in accordance with APA manuscript guidelines. This function is not exported.

Usage

print_model_comp(
  x,
  models = NULL,
  conf.int = NULL,
  boot_samples = 1000,
  progress_bar = FALSE,
  in_paren = FALSE,
  observed = TRUE
)

Arguments

x

A data frame of class apa_variance_table as returned by arrange_anova().

models

List. List containing fitted lm objects that were compared using anova(). If the list is named, element names are used as model names in the output object.

conf.int

Numeric. Confidence level for the confidence interval for \Delta R^2 if x is a model comparison object of class anova. If conf.int = NULL no confidence intervals are estimated.

boot_samples

Numeric. Number of bootstrap samples to estimate confidence intervals for \Delta R^2 if x is a model comparison object of class anova; ignored if conf.int = NULL.

progress_bar

Logical. Determines whether a progress bar is printed while bootstrapping.

in_paren

Logical. Whether the formatted string is to be reported in parentheses. If TRUE, parentheses in the formatted string (e.g., those enclosing degrees of freedom) are replaced with brackets.

observed

Logical. Indicates whether predictor variables were observed. See details.

See Also

arrange_anova(), apa_print.aov()


papaja documentation built on Sept. 29, 2023, 9:07 a.m.