hac

eap_pl.hac(formula, data)

Fit a StatsPAI regression with six Newey–West lags.

The regression uses the small-sample correction. Supply the rows in time order.

Parameters

Name Type Description Default
formula str StatsPAI regression formula. required
data polars.DataFrame Regression sample in time order. required

Returns

Name Type Description
statspai.EconometricResults Fitted coefficients, HAC standard errors, and test statistics.