LinearFitXYerrors.jl icon indicating copy to clipboard operation
LinearFitXYerrors.jl copied to clipboard

Setting intercept to 0

Open wiseac opened this issue 2 years ago • 3 comments

Is it possible to set the intercept to 0? I tried using GLM.jl to do the same but i get a collinearity error. I was wondering if there was a way to do it in this package since it does exactly what i want.

Best, W

wiseac avatar Jun 16 '23 16:06 wiseac

Travelling and not at the computer: have you tried to add a data point corresponding to the intercept (the origin in your case) and with a very large weight (=0 error) ?

rafael-guerra-www avatar Jun 19 '23 15:06 rafael-guerra-www

I tried using GLM.jl to do the same but i get a collinearity error.

For GLM, please check this Discourse post.

rafael-guerra-www avatar Jul 24 '23 18:07 rafael-guerra-www

Sorry I never replied to your first comment. I have not tried doing what you suggested in the first comment but will try the GLM fix.

That seems to be different from how I was setting the intercept.

wiseac avatar Jul 25 '23 15:07 wiseac