Generate a Summary Table for ANOVA Results
ANOVA.summary.table.Rd
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 can be output as either LaTeX (for PDF reports) or plain text (for console viewing).
Value
If `latex = TRUE`, a LaTeX-formatted table object. If `latex = FALSE`, prints the summary table and returns it (invisibly).
Examples
# Fit a linear model
model <- lm(mpg ~ wt + hp, data = mtcars)
# Generate a plain-text ANOVA summary table
ANOVA.summary.table(model, caption = "ANOVA Summary", latex = FALSE)
#> Term Df Sum.Sq Mean.Sq F.Value P.Value Signif.
#> 1 wt 1 847.72525 847.72525 126.04109 0 :3
#> 2 hp 1 83.27418 83.27418 12.38133 0.00145 :)
#> 3 Residuals 29 195.04775 6.72578 :3