Weighted-average least squares: Beyond the classical linear regression model
Giuseppe De Luca and
Jan Magnus
Stata Journal, 2025, vol. 25, issue 4, 772-811
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 ar1wals command fits linear models with stationary first-order autoregressive errors; the xtwals command fits fixed-effects and random-effects panel-data models with ei- ther independent and identically distributed or first-order autoregressive idiosyn- cratic errors; and the glmwals command fits univariate generalized linear mod- els. These commands extend the new functionalities of the wals command (ver- sion 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.
Keywords: hetwals; ar1wals; xtwals; glmwals; postestimation; weighted- average least squares; heteroskedasticity; serial correlation; panel data; generalized linear models (search for similar items in EconPapers)
Date: 2025
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj25-4/st0791/
References: Add references at CitEc
Citations:
Downloads: (external link)
http://www.stata-journal.com/article.html?article=st0791 link to article purchase
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:tsj:stataj:v:25:y:2025:i:4:p:772-811
Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html
DOI: 10.1177/1536867X251398599
Access Statistics for this article
Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins
More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().