dot-reg_check_linear: Linear Regression Diagnostic Checks (Internal) similar to reg...

.reg_check_linearR 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

Description

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

Usage

.reg_check_linear(model, exposure)

Arguments

model

A fitted linear model ('lm' object).

exposure

Character string giving the name of the exposure variable (for labeling).

Value

A data frame with one row per diagnostic test, including:

Exposure

Name of the exposure variable.

Test

Diagnostic test name.

Statistic

Test statistic or summary (e.g., p-values).

Interpretation

Plain-language result interpretation.


gtregression documentation built on Aug. 18, 2025, 5:23 p.m.