ANOVA.summary.table: Generate a Summary Table for ANOVA Results

View source: R/ANOVA.summary.table.R

ANOVA.summary.tableR Documentation

Generate a Summary Table for ANOVA Results

Description

This function creates a summary table for ANOVA results, including degrees of freedom, sum of squares, mean squares, F-values, and p-values. The table is formatted for LaTeX output using the 'kableExtra' package.

Usage

ANOVA.summary.table(model, caption)

Arguments

model

A model object for which ANOVA results are computed (e.g., output from 'lm()' or 'aov()').

caption

A character string to be used as the caption for the table.

Value

A LaTeX-formatted table generated by 'kableExtra::kable()'.

Examples

# Fit a linear model
model <- lm(mpg ~ wt + hp, data = mtcars)

# Generate the ANOVA summary table
ANOVA.summary.table(model, caption = "ANOVA Summary")

snazzieR documentation built on April 3, 2025, 5:58 p.m.