View source: R/ANOVA.summary.table.R
ANOVA.summary.table | R Documentation |
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.
ANOVA.summary.table(model, caption)
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. |
A LaTeX-formatted table generated by 'kableExtra::kable()'.
# Fit a linear model
model <- lm(mpg ~ wt + hp, data = mtcars)
# Generate the ANOVA summary table
ANOVA.summary.table(model, caption = "ANOVA Summary")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.