简体   繁体   中英

Robust Regression (rlm) with Newey West Standard Errors

Since my data is influenced by outliers and autocorrelation as well as by heteroskedasticity, I try to build a robust regression. However, I am not sure if the function "rlm" from the MASS package is compatible with the Newey West standard errors. Does anyone know whether the combination of the two functions has an adverse effect on each other?

Here is a code example of what I am trying to accomplish:

fit1 <- rlm(wage ~ status + country + familystatus + region)
fit2 <- coeftest(fit1,vcov=NeweyWest(fit1, verbose=T))

I would be very pleased about a short feedback considering my issues.

According to the article of A. Zeileis, " Econometric Computing with HC and HAC Covariance Matrix Estimators ", the rlm function is compatible with the Newey West standard errors:

The HAC estimators are already available for generalized linear models (fitted by glm) and robust regression (fitted by rlm in package MASS).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM