I have a dataframe consisting of a time series and I want to run Poisson quasi ML models using the fixest
package. To account for autocorrelation of the error terms, I want to compute Newey West standard errors. However, so far, I have not managed to do that. Here is my code:
model1 <- feglm(y ~ x1 + x2 + x3 | x4,
data, family = quasipoisson)
summary(model1, newey ~ time)
When I run the code I get the error message:
Error: in summary.fixest_multi(model1, newey ~ time):
Argument 'type' must be a single character equal to 'short', 'long', 'compact' or
'se_compact'. Problem: it is not a vector, it is of class 'formula'.
Any help would be highly appreciated.