% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diagnostics.R
\name{diagnostics}
\alias{diagnostics}
\title{Diagnostics Module for GWPR.light 1.0.0}
\description{
Unified diagnostic interface for Geographically Weighted Panel Regression
models.  Provides Moran's I (spatial autocorrelation), local F test
(fixed vs. pooling), local Hausman test (fixed vs. random), and local
Breusch-Pagan LM test.
}
\details{
**Model applicability**

| Diagnostic   | Linear | Logistic | Notes                                      |
|--------------|--------|----------|--------------------------------------------|
| moran        | yes    | yes      | Logistic uses Pearson residual              |
| f_test       | yes    | no       | Requires within and pooling models          |
| hausman      | yes    | no       | Only meaningful for random-effect models    |
| lm_test      | yes    | no       | Pooling or random-effect models             |

**Panel balance**

`compute_panel_moran()` is fully supported for balanced panels.  For
unbalanced panels a `warning()` is issued and the function attempts
computation using only the time periods present in every individual;
results may be unreliable.

**Logistic interpretation**

Moran's I computed from Pearson residuals of a Logistic model does not
follow the same asymptotic distribution as for linear models.  Treat the
test result as an exploratory heuristic, not a formal test.
}
