ANOVA.summary.table {snazzieR} | R 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")
[Package snazzieR version 0.1.1 Index]