Difference between allowrankdeficient and dropcollinear in lm function

Hi there!

I have a question regarding the documentation of the GLM package. I want to use the function

lm(formula, data, allowrankdeficient=false;
[wts::AbstractVector], dropcollinear::Bool=true)

but I have a doubt about the difference between the “allowrankdeficient” and “dropcollinear” arguments. They seem to do the same job so I can’t tell them apart. Could someone give me more insight?

Thank you in advance!

1 Like

Searching the github repository, shows in GLM.jl/test/runtests.jl :

Positional argument allowrankdeficient is deprecated, use keyword argument dropcollinear instead.

1 Like

Yo are right! Thank you so much