topic Re: Interactions in OLS regression and simple slopes. in Discussions
https://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/243820#M48108
<P>You must be using the Fit Least Squares platform to include a term for an interaction effect in the linear predictor. The Parameter Estimates report provides the estimate (slope), standard errors, and t-ratios. For example:</P>
<P> </P>
<P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 362px;"><img src="https://community.jmp.com/t5/image/serverpage/image-id/21409iF3A2332BDC8B9425/image-size/large?v=1.0&px=999" title="Capture.JPG" alt="Capture.JPG" /></span></P>
<P> </P>
<P>So the effect (slope) of height for sex=F is 4.087601 + 0.6869481 and for sex=M it is 4.087601 - 0.6869481.</P>Thu, 30 Jan 2020 15:28:47 GMTmarkbailey2020-01-30T15:28:47ZInteractions in OLS regression and simple slopes.
https://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/243811#M48107
<P>Hey everyone,</P><P> </P><DIV>I am currently trying to perform an OLS (linear) regression model with an interaction effect (to test for moderation). For example, let's say I wish to predict a continuous variable Y using two continuous variables X and M and their interaction X*M.</DIV><DIV> </DIV><DIV>The result of the effect of the interaction term is significant. However, I do not know how to ask JMP to give the data for the simple slopes. </DIV><DIV>Specifically, how do I get the betas and their significance for the effect of X an Y at the different levels of M? (usually -1sd, mean, 1sd for continuous variable or if the moderator is binary than at both levels of the moderator).</DIV><DIV> </DIV><DIV>I know how to get the plots (Fit model ... Full factorial etc.), but it's not enough, I need the actual simple effects for the slopes, SE and significance. </DIV><DIV> </DIV><DIV>Will appreciate any help on the matter. </DIV><DIV> </DIV>Thu, 30 Jan 2020 15:06:37 GMThttps://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/243811#M48107YaM2020-01-30T15:06:37ZRe: Interactions in OLS regression and simple slopes.
https://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/243820#M48108
<P>You must be using the Fit Least Squares platform to include a term for an interaction effect in the linear predictor. The Parameter Estimates report provides the estimate (slope), standard errors, and t-ratios. For example:</P>
<P> </P>
<P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 362px;"><img src="https://community.jmp.com/t5/image/serverpage/image-id/21409iF3A2332BDC8B9425/image-size/large?v=1.0&px=999" title="Capture.JPG" alt="Capture.JPG" /></span></P>
<P> </P>
<P>So the effect (slope) of height for sex=F is 4.087601 + 0.6869481 and for sex=M it is 4.087601 - 0.6869481.</P>Thu, 30 Jan 2020 15:28:47 GMThttps://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/243820#M48108markbailey2020-01-30T15:28:47ZRe: Interactions in OLS regression and simple slopes.
https://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/243925#M48124
<P>That different than the way I understand breaking down interactions work.</P><P><A href="http://web.pdx.edu/~newsomj/mvclass/ho_simple%20slopes.pdf" target="_blank">http://web.pdx.edu/~newsomj/mvclass/ho_simple%20slopes.pdf</A></P><P> </P><P>this procedure is very easily done via the Process macro for SPSS or via a simple R script. </P><P>I just really hope there's a solution for this via JMP...</P>Thu, 30 Jan 2020 17:08:06 GMThttps://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/243925#M48124YaM2020-01-30T17:08:06ZRe: Interactions in OLS regression and simple slopes.
https://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/243962#M48125
<P>JMP emphasizes visualization to understand the nature of the 'simple slopes,' or the profile of the effect of one factor while holding another factor at a given level.</P>
<P> </P>
<P>Click the red triangle next to Fit Least Squares and select Factor Profiling > Profiler. This interactive plot is based on the whole model, but shows the profile of each factor individually. You do not need the conditional slope itself because JMP plots the line, curve, or profile for you. This same visualization is available for all of the models in JMP.</P>
<P> </P>
<P>See Help > Books > Profilers for more information and examples.</P>Thu, 30 Jan 2020 17:54:07 GMThttps://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/243962#M48125markbailey2020-01-30T17:54:07ZRe: Interactions in OLS regression and simple slopes.
https://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/244032#M48126
<P>The document you attached describing simple slopes is exactly what <LI-USER uid="5358"></LI-USER> described. The only difference is that Mark stated the parameters for a categorical Z in your case (Male (-1) or Female (+1)). </P>
<P> </P>
<P>To see this, from your attachment, the model was Y = -2.3X + -0.5Z + 1.6XZ + 3.0. They chose a value of 3.5 for Z. Plugging that in for Z yields Y = (3.0 + 3.5*(-0.5)) + (-2.3 +1.6*3.5)X. The -2.3 + 1.6*3.5 = 3.3 X which exactly matches their result. Mark suggested the same thing, but used -1 and +1 because that is how the male and female values are coded in JMP. The categorical factor makes the "simple slopes" easier to find. </P>
<P> </P>
<P>A JMP script could be written to do everything outlined in your attachment (similar to what was done for SPSS or R), but I am not sure that is needed. In all fairness, I would need to explore this further to be certain as I have not looked in detail at the simple slopes document. Anyhow, here are some things to look at to see if such a script would be necessary.</P>
<P> </P>
<P>The prediction profiler is your friend! Dragging the value of Z in the profiler will show you the various simple slopes for X. This is a powerful way to see the X slopes for ANY setting of Z rather than just a select few. The prediction profiler also provides error bands to assess the statistical significance of that X slope. If the bands could contain a horizontal line, not significant.</P>
<P> </P>
<P>Add the Interaction Profiler from the red popup triangle. That will show the slope for the lowest Z setting AND the highest Z setting. </P>
<P> </P>
<P>Finally, your document has the sentence: "The usual recommendation is to center the predictor variables by subtracting the mean of each and then computing the interaction term." When your Z is continuous, JMP will do this automatically. Thus, JMP is following the usual recommendation which allows a straight-forward way to implement the simple slopes idea.</P>
<P> </P>
<P>I would suggest taking a worked out dataset with all of the simple slope calculations and run it through JMP to see where the worked out calculations match the JMP output.</P>Thu, 30 Jan 2020 17:59:49 GMThttps://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/244032#M48126Dan_Obermiller2020-01-30T17:59:49ZRe: Interactions in OLS regression and simple slopes.
https://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/244118#M48129
<P>First, thank you both for your help, it is much appreciated.</P><P>I do need the simple slopes as I must report them in my study's results section - I can't just describe it without including the actual values as is accepted (the b(SE), p value) for -1sd, mean and +1sd. </P><P> </P><P>thus, the question is, is there a way to get those in JMP?</P><P> </P><P>Once again, thank you very much for your help!</P>Thu, 30 Jan 2020 18:09:10 GMThttps://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/244118#M48129YaM2020-01-30T18:09:10ZRe: Interactions in OLS regression and simple slopes.
https://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/244327#M48139
<P>I see no way to get those items "automatically" with JMP. You get the information needed to make the decision, but not actual values to report. So, a JMP script would need to be created to do it.</P>
<P> </P>
<P>As your document says: "... most software programs have not created prepackaged procedures for plotting or testing simple slopes."</P>
<P>Look in the JMP Wish List to see if someone has added this feature to the list. If so, just kudo that entry so the developers know the support for that feature. If you don't find it there, add it so that it can be considered for a future release of JMP.</P>Thu, 30 Jan 2020 21:53:09 GMThttps://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/244327#M48139Dan_Obermiller2020-01-30T21:53:09ZRe: Interactions in OLS regression and simple slopes.
https://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/244371#M48146
<P>Thank you.</P>Fri, 31 Jan 2020 07:25:02 GMThttps://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/244371#M48146YaM2020-01-31T07:25:02ZRe: Interactions in OLS regression and simple slopes.
https://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/254544#M49971
<P>Dear <LI-USER uid="3194"></LI-USER>, I encountered similar problems with the Simple Slope Analysis and your answer proved to be very helpful. Can you explain more about how to use the error bands to find the statistical significance of the X slope?</P><P>(For example, how to show the Error Bands since I can only find the Interval Confidence in the Prediction Profiler? Can I find the exact significance level or just know that the Simple Slope is significant)</P><P>I can already calculate the <EM>β </EM>for the Simple Slope at -1 SD, +1 SD and Mean. The only thing left is calculating the Signiificance Level.</P><P>If it can be of any help, here is my data.</P>Fri, 27 Mar 2020 09:27:53 GMThttps://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/254544#M49971nguyentandat2342020-03-27T09:27:53ZRe: Interactions in OLS regression and simple slopes.
https://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/255074#M50077
<P>Unfortunately I do not have the time right now to build the tests on the simple slopes. Perhaps someone else can help with that. One thing that I did notice on your attached picture is that your prediction profiler does not have the confidence intervals turned on. If you click on the red triangle for the profiler, choose Confidence Intervals. You should see bands show up like this picture:</P>
<P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 602px;"><img src="https://community.jmp.com/t5/image/serverpage/image-id/22675iB0166CED7F47C5E5/image-dimensions/602x306?v=1.0" width="602" height="306" title="Capture.JPG" alt="Capture.JPG" /></span></P>
<P>Although this is not your data, notice the picture on the left. There is a horizontal line that is NOT within the shaded confidence interval. That variable (Career At Bats) is significant. The shaded confidence interval on the right completely contains the horizontal mean line. That variable is NOT significant. These are 95% confidence intervals and would be equivalent to conducting the test at the 5% significance level.</P>Mon, 30 Mar 2020 16:17:12 GMThttps://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/255074#M50077Dan_Obermiller2020-03-30T16:17:12ZRe: Interactions in OLS regression and simple slopes.
https://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/255207#M50098
<P>Thanks <LI-USER uid="3194"></LI-USER> </P><P>Just 1 more question. If I understand correctly, the red horizontal line is the predicted value of the DV, while the Shaded part is the CI for the predicted VL. If so, can you help me to understand why when the horizontal line stays inside the Shaded CI, the results is NOT significant?</P><P> </P>Tue, 31 Mar 2020 08:04:11 GMThttps://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/255207#M50098nguyentandat2342020-03-31T08:04:11ZRe: Interactions in OLS regression and simple slopes.
https://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/255264#M50109
<P>When the horizontal line is all within the confidence interval, the factor is not significant as the effect of that factor could easily be zero (no slope). Therefore, not significant.</P>Tue, 31 Mar 2020 13:25:48 GMThttps://community.jmp.com/t5/Discussions/Interactions-in-OLS-regression-and-simple-slopes/m-p/255264#M50109Dan_Obermiller2020-03-31T13:25:48Z