View source: R/model.summary.table.R
| model.summary.table | R Documentation | 
This function creates a summary table for a linear model, including coefficients, standard errors, p-values, and model statistics (e.g., MSE, R-squared). The table is formatted for LaTeX output using the 'kableExtra' package.
model.summary.table(model, caption)
model | 
 A linear model object (e.g., output from 'lm()').  | 
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 summary table
model.summary.table(model, caption = "Linear Model Summary")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.