<?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 Negative R2 in Mixed Models in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Negative-R2-in-Mixed-Models/m-p/36900#M21654</link>
    <description>&lt;P&gt;How is R2 calculated in JMP (v12.2) when fixed and random effects are included in&amp;nbsp;Fit Model? I can't find any documentation on this.&amp;nbsp;The reason this came up is that I have&amp;nbsp;been getting&amp;nbsp;negative R2 values. &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2017 21:22:48 GMT</pubDate>
    <dc:creator>jwiltsie</dc:creator>
    <dc:date>2017-03-07T21:22:48Z</dc:date>
    <item>
      <title>Negative R2 in Mixed Models</title>
      <link>https://community.jmp.com/t5/Discussions/Negative-R2-in-Mixed-Models/m-p/36900#M21654</link>
      <description>&lt;P&gt;How is R2 calculated in JMP (v12.2) when fixed and random effects are included in&amp;nbsp;Fit Model? I can't find any documentation on this.&amp;nbsp;The reason this came up is that I have&amp;nbsp;been getting&amp;nbsp;negative R2 values. &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 21:22:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Negative-R2-in-Mixed-Models/m-p/36900#M21654</guid>
      <dc:creator>jwiltsie</dc:creator>
      <dc:date>2017-03-07T21:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Negative R2 in Mixed Models</title>
      <link>https://community.jmp.com/t5/Discussions/Negative-R2-in-Mixed-Models/m-p/36902#M21656</link>
      <description>&lt;P&gt;Have you tried using the "?" tool and clicking on the Results Table you are interested in finding the details on?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do this, either select the "? Help" tool from the Tools pull down menu and then click on the table you are interested in, or input Shift/? to bring the tool up, and then click on the table of interest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is a good start on finding out the details.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 21:45:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Negative-R2-in-Mixed-Models/m-p/36902#M21656</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-03-07T21:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Negative R2 in Mixed Models</title>
      <link>https://community.jmp.com/t5/Discussions/Negative-R2-in-Mixed-Models/m-p/36905#M21657</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1607"&gt;@jwiltsie&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a section of the JMP help that might be of use:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.jmp.com/support/help/Mixed_and_Random_Effect_Model_Reports_and_Option.shtml" target="_blank"&gt;http://www.jmp.com/support/help/Mixed_and_Random_Effect_Model_Reports_and_Option.shtml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without seeing your particular results I can't be sure what is happening, but I suspect the model you're fitting has a number of random effects that are likely close to zero/absorbing no variance. When fitting a mixed model, you have the option to allow "unbounded variance components," which means that a variance component can converge to a negative estimate. This might seem strange (or downright ridiculous) since we know in reality a variance can never be negative. But, it's been shown that constraining estimates for the variance components to be positive&amp;nbsp;leads to bias in estimation of the fixed effects (if you're interested in the statistical reasons for this I've included a google scholar search below).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, what does that have to do with your coefficient of determination for the full model? If many of your variance components are estimated to be negative (meaning they're likely inactive in the population), and whatever fixed effects you're estimating absorb little variance, it's possible for the overall model R2 to be negative.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I said before, it's hard to know what's happening exactly without seeing more about your particular situation, but hopefully this helps put you on the right path!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Julian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://scholar.google.com/scholar?q=unbounded+variance+components+mixed+model&amp;amp;hl=en&amp;amp;as_sdt=0&amp;amp;as_vis=1&amp;amp;oi=scholart&amp;amp;sa=X&amp;amp;ved=0ahUKEwiW3Z7AhsbSAhXE4CYKHZLUCs4QgQMIGjAA" target="_blank"&gt;https://scholar.google.com/scholar?q=unbounded+variance+components+mixed+model&amp;amp;hl=en&amp;amp;as_sdt=0&amp;amp;as_vis=1&amp;amp;oi=scholart&amp;amp;sa=X&amp;amp;ved=0ahUKEwiW3Z7AhsbSAhXE4CYKHZLUCs4QgQMIGjAA&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 04:23:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Negative-R2-in-Mixed-Models/m-p/36905#M21657</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2017-03-08T04:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Negative R2 in Mixed Models</title>
      <link>https://community.jmp.com/t5/Discussions/Negative-R2-in-Mixed-Models/m-p/36924#M21668</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your description is correct in that I have a random effect with a negative estimate, here is a screen shot (should have included this in the original post).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mixed Model Output with negative R2" style="width: 686px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5510i415B90B508AD1150/image-size/large?v=v2&amp;amp;px=999" role="button" title="Fit Model Output.PNG" alt="Mixed Model Output with negative R2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Mixed Model Output with negative R2&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I was wondering about the statistical details for R2 for mixed models (which I can't find in the link you provided). Based on a quick internet search it looks like there is more than one method to calculate R2 for mixed models.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 15:17:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Negative-R2-in-Mixed-Models/m-p/36924#M21668</guid>
      <dc:creator>jwiltsie</dc:creator>
      <dc:date>2017-03-08T15:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Negative R2 in Mixed Models</title>
      <link>https://community.jmp.com/t5/Discussions/Negative-R2-in-Mixed-Models/m-p/36927#M21670</link>
      <description>I have tried the "?" tool (which usually gets me what I want), but it takes me to the summary of fit for fixed effect models only (no random effects) which gives the standard definition, R2 =SSM/SST. But I don't think this applies for mixed models and if it does there is no ANOVA report to get the SSM and SST.</description>
      <pubDate>Wed, 08 Mar 2017 15:23:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Negative-R2-in-Mixed-Models/m-p/36927#M21670</guid>
      <dc:creator>jwiltsie</dc:creator>
      <dc:date>2017-03-08T15:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Negative R2 in Mixed Models</title>
      <link>https://community.jmp.com/t5/Discussions/Negative-R2-in-Mixed-Models/m-p/36930#M21671</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1607"&gt;@jwiltsie&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Sorry, I clearly didn't answer the question you asked :)&lt;/img&gt; I just looked through the documentation again and although there are statistical details for R^2 for fixed-effects only models, I also can't seem to find details for models with random effects. I will do some more digging, but I would suggest you email support@jmp.com with your question and they will likely be able to get the answer to your question quickly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Julian&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 15:28:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Negative-R2-in-Mixed-Models/m-p/36930#M21671</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2017-03-08T15:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Negative R2 in Mixed Models</title>
      <link>https://community.jmp.com/t5/Discussions/Negative-R2-in-Mixed-Models/m-p/36936#M21674</link>
      <description>&lt;P&gt;Is it reporting the Generalized RSquare as described in the Mixed Model Personality&amp;nbsp;(JMP Pro only, which I don't have)? This excerpt is from the JMP Fitting Linear Models Book under the Help menu. It looks like this would be reasonable although I don't get a negative R2 when I try this calculation:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Generalized RSquare.PNG" style="width: 813px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5519i516C62AAF3EF4C45/image-size/large?v=v2&amp;amp;px=999" role="button" title="Generalized RSquare.PNG" alt="Generalized RSquare.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 15:52:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Negative-R2-in-Mixed-Models/m-p/36936#M21674</guid>
      <dc:creator>jwiltsie</dc:creator>
      <dc:date>2017-03-08T15:52:43Z</dc:date>
    </item>
  </channel>
</rss>

