Dear Statalist,
I have some problems when using command xtgls to solve heteroskedasticity and autocorrelation. When I type the command, the respond I get is "Year is not regularly spaced or does not have intervals of delta -- use the force option to treat the intervals as though they were regular". Even when I xtset my data again and again, the response I get when using xtgls always "Year is not regularly spaced or does not have intervals of delta -- use the force option to treat the intervals as though they were regular" or "must specify timevar; use xtset" (r459). I don't know how to solve it even I had xtset do many times.
More information about my data: I use 8 countries with 13 products code from year 2010-2021
Please help me and thanks a lot

in advance!
I have some problems when using command xtgls to solve heteroskedasticity and autocorrelation. When I type the command, the respond I get is "Year is not regularly spaced or does not have intervals of delta -- use the force option to treat the intervals as though they were regular". Even when I xtset my data again and again, the response I get when using xtgls always "Year is not regularly spaced or does not have intervals of delta -- use the force option to treat the intervals as though they were regular" or "must specify timevar; use xtset" (r459). I don't know how to solve it even I had xtset do many times.
More information about my data: I use 8 countries with 13 products code from year 2010-2021
Please help me and thanks a lot
in advance!
Comment