Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting intercept to 0 #10

Open
wiseac opened this issue Jun 16, 2023 · 3 comments
Open

Setting intercept to 0 #10

wiseac opened this issue Jun 16, 2023 · 3 comments

Comments

@wiseac
Copy link

wiseac commented Jun 16, 2023

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

@rafael-guerra-www
Copy link
Owner

rafael-guerra-www commented Jun 19, 2023

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
Copy link
Owner

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

For GLM, please check this Discourse post.

@wiseac
Copy link
Author

wiseac commented Jul 25, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants