I am currently working on the estimation of spatial models and got a problem with my robust SLX model. Technically you do not need to know anything about spatial econometrics, I created all spatial effects manually and wanted to estimate a robust linear regression with the lm_robust command from the estimatr
package.
This is a plain robust linear estimation and I really don't know why it does not work.
It works for instance for the rlm
command from the MASS package, but I want to use the lm_robust since it offers the opportunity to choose the type of HAC estimator.
library(estimatr)
library(stats4)
lmro <- lm_robust(eq1, data=mydata, se_type = "HC0")
summary(lmro)
AIC(lmro)
BIC(lmro)
Error in UseMethod("logLik") : no applicable method for 'logLik' applied to an object of class "lm_robust"
I don't get it why the logLik
cannot be applied to this specific command for robust linear estimation.
Thanks in advance for any help! :)