Date: 2023-08-26 07:19 Sender: Christof SchötzThank you for your quick response!
> Well, "nobody" would use glmrob() for the normal ("gaussian") case.
Well, somebody did. In a now published paper. I basically came here in the search of the reason why some plots in that paper look odd and found that they use robustbase::glmrob(family = 'gaussian').
> Yes, we should probably warn for `family = "gaussian"` that using lmrob() with much more sophisticated algorithms and notably standard errors, confidence intervals etc, is much recommended for the normal distribution.
If using this method is discouraged, a warning would certainly be appreciated.
> Lastly: Your example is *not* reproducible! you forgot to set the random seed in your R code.
Right! With set.seed(0) the code works as I intended. |
Date: 2023-08-25 21:29 Sender: Martin MaechlerWell, "nobody" would use glmrob() for the normal ("gaussian") case.
The very very strongly recommended function there is lmrob()
and it works nicely here.
Yes, we should probably warn for `family = "gaussian"` that using lmrob() with much more sophisticated algorithms and notably standard errors, confidence intervals etc, is much recommended for the normal distribution.
Lastly: Your example is *not* reproducible! you forgot to set the random seed in your R code.
Yes, it *is* still a bug here that the "Mqle" algorithm does not converge correctly; for some random seeds, I see it "looping" / "ping-pong"in between 2 or 4 coefficient-configurations;
Here where you set a leverage point, Huber regression is known not to be very good (if it is not started robustly); the `weights.on.x = "<opt>"` should help in principle, but in one case I tried, `weights.on.x = "hat"` did not help enough.
|