This paper introduces 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 ar1wals command fits linear models with stationary AR(1) errors; the xtwals command fits fixed-effects and random-effects panel-data models with either i.i.d. or AR(1) idiosyncratic errors; while 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 (2025a), and enlarge the classes of models that can be fitted by this model-averaging method. We also provide an illustration of the hetwals and glmwals commands by means of real data applications.

De Luca Giuseppe, Jan R. Magnus (2025). Weighted-average least squares: Beyond the classical linear regression model. THE STATA JOURNAL.

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

De Luca Giuseppe
Primo
Membro del Collaboration Group
;
2025-01-01

Abstract

This paper introduces 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 ar1wals command fits linear models with stationary AR(1) errors; the xtwals command fits fixed-effects and random-effects panel-data models with either i.i.d. or AR(1) idiosyncratic errors; while 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 (2025a), and enlarge the classes of models that can be fitted by this model-averaging method. We also provide an illustration of the hetwals and glmwals commands by means of real data applications.
2025
Settore ECON-05/A - Econometria
De Luca Giuseppe, Jan R. Magnus (2025). Weighted-average least squares: Beyond the classical linear regression model. THE STATA JOURNAL.
File in questo prodotto:
File Dimensione Formato  
DeLuca_Magnus_2025b_13.pdf

Solo gestori archvio

Descrizione: Articolo
Tipologia: Versione Editoriale
Dimensione 621.58 kB
Formato Adobe PDF
621.58 kB Adobe PDF   Visualizza/Apri   Richiedi una copia

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/10447/682723
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact