LeonardV / restriktor

An R package for (in)equality constrained estimation, model selection and hypothesis testing for the linear model
http://restriktor.org
4 stars 4 forks source link

RLM - could not find function "lqs" #14

Open vadmbertr opened 1 year ago

vadmbertr commented 1 year ago

Hi,

Thanks a lot for your work on this package. I faced the could not find function "lqs" error while fitting a constraint RLM (using restriktor::restriktor(...)). It seems that MASS is not loaded in the environment prior to the instruction do.call("lqs", c(list(x, y, intercept = FALSE), lqs.control)) in conRLM_fit.R (line 79). A straightforward workaround is to load MASS myself before fitting the model.

Have a nice day, Vadim