.reg_check_linear | R Documentation |
Linear Regression Diagnostic Checks (Internal) similar to reg check in stata Performs diagnostic tests for linear regression models: - Breusch-Pagan test for heteroskedasticity - Shapiro-Wilk test for normality of residuals - RESET test for model specification - Cook's Distance for influential points
.reg_check_linear(model, exposure)
model |
A fitted linear model ('lm' object). |
exposure |
Character string giving the name of the exposure variable (for labeling). |
A data frame with one row per diagnostic test, including:
Name of the exposure variable.
Diagnostic test name.
Test statistic or summary (e.g., p-values).
Plain-language result interpretation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.