fgls - Feasible GLS for Serial Correlation and Heteroskedasticity
Feasible generalized least squares (FGLS) estimators for
linear regressions whose errors are serially correlated,
heteroskedastic of unknown form, or both. Serial correlation is
handled by the autoregressive filter of Perron and
González-Coya (2026) <doi:10.1016/j.jeconom.2026.106346>,
estimated from a Durbin regression whose order is chosen by an
information criterion, with a variance estimator that stays
valid when the regressors are only pre-determined rather than
strictly exogenous. Heteroskedasticity is handled by the
adaptive Lasso estimate of the skedastic function of
González-Coya and Perron (2024) <doi:10.1515/jem-2023-0007>,
with a bias-corrected sandwich variance. Both corrections can
be combined. Benchmark estimators (ordinary least squares with
heteroskedasticity and autocorrelation consistent standard
errors, Cochrane-Orcutt, infeasible GLS) and the simulation
designs of both papers are included.