I have run a regression for my time-series cross-sectional data. Now, I would like to include panel-corrected standard errors. The plm regression works without any problems. Unfortunately, I am not sure how to do this as the pcse function does not work.
library(plm)
reg1 <- plm(Var2 ~ Var1 + Var3 + Var4, data=testdf, index=c("country", "year"), model="random")
library(pcse)
pcse(reg1, country, year, pairwise=FALSE)
Is pcse the wrong function, and is there a possibility to include the calculation of panel-corrected standard errors in the plm regression already?