I sometimes have to vectorise the Huber weights from a robust regression and use them in a lm. Recently I've had to do something similar for a logistic model but I'm slightly worried because I don't get very similar results
library(robustbase)
data(vaso)
ROB <- glmrob(Y ~Volume+Rate, family=binomial("logit"), data=vaso)
ROB
glm(Y ~Volume+Rate,data=vaso,family=binomial("logit"))
glm(Y ~Volume+Rate,data=vaso,weights=ROB$w.r,family=binomial("logit"))
The coefficients from the weighted glm are more similar to the robust regression than the unweighted glm, but is there a way to make them the same? I can get the same results with a robust (rlm) and weighted lm but this doesn't seem to be the case with glm. I haven't looked at the glm robust regression in detail so what I'm asking may be impossible...
Thanks for your help