0

I would like to test if serial correlation is present in my model. I have a large panel data set and I run the regression with felm and let's call the model felmmodel.

I know there are several ways to test for serial correlation. For instance, pdwtest , pwfdtest or pbgtest .

However, when I try to run these tests with felmmodel, I always get an error saying I cannot use these tests with felm. Is there another function in R where I can test for serial correlation with felm?

The reason I use felm and not plm for my regression is that I would like to cluster my standard errors based on a specific variable in my dataset. I can specificy that when using felm. With plm, I have to use coeftest(plmmodel, vcov. = vcovHC(plmmodel, cluster="group")) . I can only choose beteen cluster="group" or cluster="time" but nothing else.

remo
  • 171
  • 7
  • It's great that you've included what you've tried, but it would be ideal if you included the code you used to create your model. Check it out: [making R reproducible questions](https://stackoverflow.com/q/5963269). – Kat May 08 '22 at 06:26

0 Answers0