model.summary.table: Generate a Summary Table for a Linear Model

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

model.summary.tableR Documentation

Generate a Summary Table for a Linear Model

Description

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.

Usage

model.summary.table(model, caption)

Arguments

model

A linear model object (e.g., output from 'lm()').

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 summary table
model.summary.table(model, caption = "Linear Model Summary")

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