Weighted-average least squares: Beyond the classical linear regression model

Abstract In this article, we introduce four new commands for the weighted- average least-squares approach to model uncertainty. The hetwals command fits linear models with multiplicative forms of heteroskedasticity; the arlwals command fits linear models with stationary first-order autoregressive errors; the xtwals command fits fixed-effects and random-effects panel-data models with either independent and identically distributed or first-order autoregressive idiosyncratic errors; and the glmwals command fits univariate generalized linear models. These commands extend the new functionalities of the wals command (version 3.0), introduced by De Luca and Magnus (2025, Stata Journal 25: 587-626), and enlarge the classes of models that can be fit by this model-averaging method. We also illustrate the hetwals and glmwals commands via real-data applications.

Authors

Institutions

Publication Details

Journal
The Stata Journal Promoting communications on statistics and Stata
Published
2025-12-01
DOI
https://doi.org/10.1177/1536867x251398599
Primary Topic
Spatial and Panel Data Analysis
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Weighted-average least squares: Beyond the classical linear regression model

Giuseppe De Luca, Jan R. Magnus
The Stata Journal Promoting communications on statistics and Stata
Spatial and Panel Data Analysis
article

Weighted-average least squares: Beyond the classical linear regression model

Giuseppe De Luca, Jan R. Magnus
article en

Abstract

Abstract In this article, we introduce four new commands for the weighted- average least-squares approach to model uncertainty. The hetwals command fits linear models with multiplicative forms of heteroskedasticity; the arlwals command fits linear models with stationary first-order autoregressive errors; the xtwals command fits fixed-effects and random-effects panel-data models with either independent and identically distributed or first-order autoregressive idiosyncratic errors; and the glmwals command fits univariate generalized linear models. These commands extend the new functionalities of the wals command (version 3.0), introduced by De Luca and Magnus (2025, Stata Journal 25: 587-626), and enlarge the classes of models that can be fit by this model-averaging method. We also illustrate the hetwals and glmwals commands via real-data applications.

The Stata Journal Promoting communications on statistics and StataVol. 25(4)
Vrije Universiteit Amsterdam (NL), University of Palermo (IT)
Openalex Percentile: Top 55%
Spatial and Panel Data Analysis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.