<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Estimating slopes and intercepts in ANCOVA in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226131#M44875</link>
    <description>&lt;P&gt;Thanks for your quick reply.&amp;nbsp; Your example actually illustrates my point.&amp;nbsp; The intercept estimates from SAS do not match those from JMP, not even close.&amp;nbsp; The intercept estimates from JMP appear to be deviations from something, but it is not clear to me what that could be.&amp;nbsp; The situation becomes even more unclear if you run the model with the "height" main effect.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 17:36:21 GMT</pubDate>
    <dc:creator>abh1</dc:creator>
    <dc:date>2019-09-17T17:36:21Z</dc:date>
    <item>
      <title>Estimating slopes and intercepts in ANCOVA</title>
      <link>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226115#M44873</link>
      <description>&lt;P&gt;I am feeling particularly dumb today and hope someone can help me feel smarter.&amp;nbsp; When running an ANCOVA with separate slopes, I would like to get estimates of the slopes and intercepts of each group along with the t-tests of significance.&amp;nbsp; In SAS, I can run GLM and specify the model like this (using the JMP "Drug" data table):&lt;/P&gt;&lt;P&gt;model y = Drug Drug*x / noint solution;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot find anything in JMP that is comparable to this.&amp;nbsp; Specifying the same model above in the Fit Model dialog gives me something totally unlike what SAS gives.&amp;nbsp; I have tried displaying indicator parameter estimates, extended estimates, and pretty much everything this is under the "Effects" menu item in the Fit Model results window.&amp;nbsp; I realize that JMP parameterizes the model differently than SAS, but I have not yet found the correct combination of model specification and options to duplicate the SAS results.&amp;nbsp; I also realize that one can figure out what the slopes and intercepts are from the parameter estimates table, but the tests are testing whether the deviations are significantly different from zero, not whether the group slopes and intercepts are different from zero (unless I am actually dumber than I feel today).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 17:03:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226115#M44873</guid>
      <dc:creator>abh1</dc:creator>
      <dc:date>2019-09-17T17:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating slopes and intercepts in ANCOVA</title>
      <link>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226128#M44874</link>
      <description>&lt;P&gt;I just used the JMP example Big Class. I used Analyze &amp;gt; Fit Model to specify the model and then clicked the red triangle to select Submit to SAS. This program is what JMP created for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
DATA Big_Class; INPUT  sex &amp;amp;$ height weight; Lines;
F  59  95  
F  61  123  
F  55  74  
F  66  145  
F  52  64  
M  60  84  
M  61  128  
M  51  79  
F  60  112  
F  61  107  
F  56  67  
M  65  98  
M  63  105  
M  58  95  
M  59  79  
F  61  81  
F  62  91  
F  65  142  
F  63  84  
F  62  85  
M  63  93  
M  64  99  
M  65  119  
M  64  92  
M  68  112  
M  64  99  
M  69  113  
F  62  92  
F  64  112  
M  67  128  
M  65  111  
M  66  105  
M  62  104  
M  66  106  
F  65  112  
F  60  115  
M  68  128  
F  62  116  
M  68  134  
M  70  172  
;
RUN;

PROC GLM  DATA=Big_Class ALPHA=0.05;
CLASS sex;
MODEL  weight =  sex height sex*height / noint solution;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the SAS output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 527px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19307i073C22CC13D203C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First of all, you requested a linear model without an intercept. Simply check this option in the middle of the bottom of the Fit Model launch dialog. Click the red triangle and deselect Center Polynomials. Click Run. Then click the red triangle at the top and select Estimates &amp;gt; Expanded Estimates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the JMP output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 349px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19310iC2FAA8466D5014B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The estimates are different because JMP parameterizes the terms differnently than PROC GLM. Is this report what you are looking for?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 17:36:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226128#M44874</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-09-17T17:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating slopes and intercepts in ANCOVA</title>
      <link>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226131#M44875</link>
      <description>&lt;P&gt;Thanks for your quick reply.&amp;nbsp; Your example actually illustrates my point.&amp;nbsp; The intercept estimates from SAS do not match those from JMP, not even close.&amp;nbsp; The intercept estimates from JMP appear to be deviations from something, but it is not clear to me what that could be.&amp;nbsp; The situation becomes even more unclear if you run the model with the "height" main effect.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 17:36:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226131#M44875</guid>
      <dc:creator>abh1</dc:creator>
      <dc:date>2019-09-17T17:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating slopes and intercepts in ANCOVA</title>
      <link>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226136#M44876</link>
      <description>&lt;P&gt;There is no intercept parameter in either SAS or JMP model specification, so there is no estimate for the intercept. (Edit: I realize that you refer to the group effect as an intercept. That is a fair interpretation but different from my own. The interpretation of the intercept is murkier without centering, too.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The effect test for the interaction is used to determine if the slope is different for any group. (Edit: I don't think I am clear about what you want. Discrepancies aside, the JMP output (what is provided) is the same as SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking into the nature of the differences between SAS GLM and JMP Fit Least Squares but I do not know when I might have an explanation.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 17:54:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226136#M44876</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-09-17T17:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating slopes and intercepts in ANCOVA</title>
      <link>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226139#M44877</link>
      <description>&lt;P&gt;This is the ANCOVA model that you fit (still using Big Class example):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 508px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19314iFAF55F10EE5EBBB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the ANCOVA model of the same data with an intercept term and a centered continuous predictor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 505px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19315iDEB45C77F6713624/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The conditions of the first model are very different than those of the second model. They are not just mathematical alternatives (intercept and categorical effect versus categorical intercepts).&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 18:05:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226139#M44877</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-09-17T18:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating slopes and intercepts in ANCOVA</title>
      <link>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226140#M44878</link>
      <description>&lt;P&gt;Using the BigClass data, this is what I get from PROC GLM with MODEL weight = sex sex*height / noint solution;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Parameter&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Estimate&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Standard&lt;/P&gt;&lt;P&gt;Error&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;t-value&lt;/TD&gt;&lt;TD&gt;Pr &amp;gt; |t|&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;sex F&lt;/TD&gt;&lt;TD&gt;-189.7725451&lt;/TD&gt;&lt;TD&gt;65.19174041&lt;/TD&gt;&lt;TD&gt;-2.91&lt;/TD&gt;&lt;TD&gt;0.0061&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;sex M&lt;/TD&gt;&lt;TD&gt;-109.0144590&lt;/TD&gt;&lt;TD&gt;51.63743795&lt;/TD&gt;&lt;TD&gt;-2.11&lt;/TD&gt;&lt;TD&gt;0.0418&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;height*sex F&lt;/TD&gt;&lt;TD&gt;4.7745491&lt;/TD&gt;&lt;TD&gt;1.06889262&lt;/TD&gt;&lt;TD&gt;4.47&lt;/TD&gt;&lt;TD&gt;&amp;lt;.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;height*sex M&lt;/TD&gt;&lt;TD&gt;3.4006530&lt;/TD&gt;&lt;TD&gt;0.80623574&lt;/TD&gt;&lt;TD&gt;4.22&lt;/TD&gt;&lt;TD&gt;0.0002&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;The interpretation of the two sex parameter estimates is that they are the intercepts for F and M and the height*sex parameter estimates are the F and M slopes.&amp;nbsp; The tests in this table are testing whether these parameter estimates are significantly different from zero.&amp;nbsp; My original question primarily concerned how to duplicate this table in JMP.&amp;nbsp; The graph produced by Fit Model is the same as the graph produced by PROC GLM, but the parameter estimates tables are very different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 18:30:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226140#M44878</guid>
      <dc:creator>abh1</dc:creator>
      <dc:date>2019-09-17T18:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating slopes and intercepts in ANCOVA</title>
      <link>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226145#M44881</link>
      <description>&lt;P&gt;I did hear back from JMP Technical Support about the differences:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"In a simple case of the model weight=sex, PROC GLM includes a column in the design matrix for both levels of ‘sex’, so when the intercept is removed, there are still 2 columns left for the two parameters (one for male, one for female). JMP, on the other hand, will only have a single column in the design matrix, so only one parameter is estimated. They won’t match with no intercept models if categorical effects are included."&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 19:25:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226145#M44881</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-09-17T19:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating slopes and intercepts in ANCOVA</title>
      <link>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226151#M44882</link>
      <description>&lt;P&gt;Trying to keep the comparison of like models, here is the SAS output for weight = sex with an intercept:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 514px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19317iC494587B8DA6E131/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the mean weight for sex = F is equal to 108.3181818 - 7.3737374 =&amp;nbsp;100.94444 (prediction).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the JMP output for the same model:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 299px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19318i50860894DAB5E7B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the mean weight for sex = F is equal to 104.63131 - 3.686869 =&amp;nbsp;100.94444, the same predicted value&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's remove the intercept term from the model and see what happens. Here is the SAS output for the new model:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 500px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19319i70390B6D407B0BDE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The mean weight for sex = F is 100.94444 again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about JMP?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 286px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19320i05CD2722496D5EDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hmm, that's different. This estimate is not wrong, though! JMP uses effect coding for the linear predictor and this constrained model model is not the same as the constrained model in SAS GLM,. This estimate is the best in the least squares sense but it is not a good fit with only sex for the predictor. You should not remove the intercept. That is the lesson here.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 19:48:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Estimating-slopes-and-intercepts-in-ANCOVA/m-p/226151#M44882</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-09-17T19:48:14Z</dc:date>
    </item>
  </channel>
</rss>

