How can I select intercept in multiple regression?
I want two lines to cross the Y axis in the (0,100) point.
Thanks
Tohar
I assume that you selected Analyze > Fit Model to start the multiple regression. A check box is at the center of the bottom of the launch dialog. Select it to remove the intercept from the model
This post describes how to use the Fit Y-by-X/Bivariate platform with by() .... to collect the slopes and intercepts:
Creating-columns-from-Linear-Fit-Constants-slope-intercept
Perhaps more details are needed as I am the third to respond and I have a different take on your question. You said you wanted the lines to go through (0, 100). That is not the same as having the y-intercept of zero. You could use the nonlinear platform to build a model with a fixed y-intercept of 100 and the rest of the linear model to estimate the parameters with that restriction.
Provide a bit more clarity of your situation so that we can better assist you.
Oh, thanks, I miss-read this sentence.In the Fit Y - by - X / Bivariate Platform there is also an option to set the intercept to a fixed value:Constrain intercept to
@Tohar , so it sounds like you have an ANCOVA model (one categorical factor C, and one continuous X) and you want to regress Y on these. Define Y100 = Y-100. then use Y100 as your response. then the only effect in your model will be C*X, with no intercept. See pic below. Also, in the red triangle pull down menu deselect "Center Polynomials".
Run this and get the following: And remember Y100 is Y-100. So, when Y100=0, Y=100. You can then get creative with Save Prediction Formula/Graph Builder/etc to get the Y axis back to the raw scale (shift it back up by 100).
Thank you very much
I am not about the result I got; the lines cross the Y axis in (0,0) - see attached.
My goal is to check if there is a difference in rate (ie slope) between the two treatment groups. It is not necessary to check whether there is a difference in the intercept, I want to set it both in the model and in the presentation graph at (0,100).
Many thanks!!!!!
Did you try the Group By command in the platform menu (red triangle) before using Fit Special and specifying a Y-intercept = 100?