in regression analysis, how can I make a model with intercept equal to 0? I have version 2.6.4 4
in regression analysis, how can I make a model with intercept equal to 0? I have version 2.6.4 4
in previous versions, a checkbox appeared, now I can't find it...
- mcfanda@gmail.com
- Posts: 562
- Joined: Thu Mar 23, 2017 9:24 pm
Re: in regression analysis, how can I make a model with intercept equal to 0? I have version 2.6.4 4
In gamlj3 you can estimate a regression model (GLM) without intercept (intercept =0). Obviously, how to interpret the results is completely up to you
Cheers
Cheers
Re: in regression analysis, how can I make a model with intercept equal to 0? I have version 2.6.4 4
Thank you for responding
I'm looking for a tool that can help me explain things to students who lack mathematical and especially programming skills. I've been using it, and the library you recommended calculates one parameter incorrectly. Also, when asked to recalculate the model without B0, it doesn't do it either
greetings
I'm looking for a tool that can help me explain things to students who lack mathematical and especially programming skills. I've been using it, and the library you recommended calculates one parameter incorrectly. Also, when asked to recalculate the model without B0, it doesn't do it either
greetings
- mcfanda@gmail.com
- Posts: 562
- Joined: Thu Mar 23, 2017 9:24 pm
Re: in regression analysis, how can I make a model with intercept equal to 0? I have version 2.6.4 4
If you find something you believe is incorrect, please send a omv file where we can see where the error is (if any), and explain what the results should be, please
- mcfanda@gmail.com
- Posts: 562
- Joined: Thu Mar 23, 2017 9:24 pm
Re: in regression analysis, how can I make a model with intercept equal to 0? I have version 2.6.4 4
Hi
we have checked the module GAMLj3 (version 3.6.1) on the case you are referring to, but we did not find any of the issues you mentioned. You can test it using this simple dataset Y variable has mean M=5 and variance v=7.5, N=9. Variable x has mean M=2.
When estimating a intercept-only model the module returns an intercept of 5, as expected, and SS=60, the latter being v*df=7.5*8. When a 0 only model is estimated (uncheck "intercept" in the model panel), no parameter is estimated and the SS=285, which is exactly sum(y^2).
When x is inserted as predictor, the intercept is 5, because x is centered to its mean (as indicated in the note under the info table), so the intercept is the expected value for average x. Total SS is 60, as in the first model. If 0 intercept is requested, with x as predictor, the model updates, and estimates only the slope. The total SS is again 285 as in the second model.
we have checked the module GAMLj3 (version 3.6.1) on the case you are referring to, but we did not find any of the issues you mentioned. You can test it using this simple dataset Y variable has mean M=5 and variance v=7.5, N=9. Variable x has mean M=2.
When estimating a intercept-only model the module returns an intercept of 5, as expected, and SS=60, the latter being v*df=7.5*8. When a 0 only model is estimated (uncheck "intercept" in the model panel), no parameter is estimated and the SS=285, which is exactly sum(y^2).
When x is inserted as predictor, the intercept is 5, because x is centered to its mean (as indicated in the note under the info table), so the intercept is the expected value for average x. Total SS is 60, as in the first model. If 0 intercept is requested, with x as predictor, the model updates, and estimates only the slope. The total SS is again 285 as in the second model.
- mcfanda@gmail.com
- Posts: 562
- Joined: Thu Mar 23, 2017 9:24 pm
Re: in regression analysis, how can I make a model with intercept equal to 0? I have version 2.6.4 4
Finally, if you run a model with x not centered (Covariates scaling panel, select "original"), you get an intercept of 3, which is My-B*Mx=5-1*2=3 with correct slope=1.
A 0-intercept model for this setup yields a B=2.28 which is correctly the slope of the line that crosses the origin.
A 0-intercept model for this setup yields a B=2.28 which is correctly the slope of the line that crosses the origin.