Hi Sven,
Thank for your comments. I agree with you that “gappy” time series clearly corrupt a valid
evaluation of the model, and the estimates – depending on the amount of data gabs
(systematically or non-systematically). But what shall we do when we only have access to
incomplete data? My ad-hoc point is that if we detect heterosc/autocorr by using the
incomplete time series, it is necessary to correct the st.dev. of the coefficient
estimate. I experienced that it was difficult to activate the HAC in Gretl when the data
are incomplete, and to what I could see, the HAC-option was deactivated when I used “Drop
observations with missing values”. I’m a new user of Gretl. I’m impressed over the job the
developers have done, and I look forward using the program 😊
Regards,
Torbj.
Fra: Sven Schreiber <sven.schreiber(a)fu-berlin.de>
Sendt: 8. november 2022 10:48
Til: gretl-users(a)gretlml.univpm.it
Emne: [Gretl-users] Re: How to apply the HAC option in Gretl?
Am 07.11.2022 um 22:23 schrieb tobbenlorentzen(a)gmail.com
<mailto:tobbenlorentzen@gmail.com> :
Hi Allin Cottrell,
Thank a lot for your suggestion. It works! My data are not "perfect" due to
missing values, and some zeros seem to cause some trouble when taking the natural log of
the dependent variable. The data are defined as time series data when uploaded into Gretl,
but missing values cause trouble when running an ols regression. The HAC seems to be
deactivated when the data are cleaned (when the rows of missing values are deleted from
the data-file). When these data are deleted, the time interval between the observations is
not consistent. However, when redefining the new, cleaned data, and defining them (data)
as time series, the HAC-option function well.
Maybe the developers of Gretl can look into this problem - or lack of flexibility. R-does
handle it, and also Eviews.
Hi, don't know about R, but what you're saying about Eviews is only true up to a
certain extent. I just checked on Eviews 11 (not current, I know, anybody please speak up
if the situation has changed since then); yes, Eviews automatically removes the interior
missing values for the OLS estimate, which saves you the hassle of removing them manually.
(Note that if you have a bunch of lags, this can lead to a substantial "hole" in
your estimation sample, but I guess the user is supposed to be aware of that.)
However, if you then let Eviews run diagnostic tests on the estimated residual
"gappy" time series, it does carry them out, but tells you: "interior
missing value lagged residuals set to zero". This is of course a pragmatic approach
(and asymptotically justified), but will bias the results in finite samples. This can also
affect the estimates of the HAC standard errors.
Maybe this way of handling it is preferable, given that other alternatives will also be
imperfect. But there is some arbitrariness involved in the approach of Eviews.
cheers
sven