<?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: Generating conditional and marginal R-squared for mixed models in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468611#M71243</link>
    <description>&lt;P&gt;Thank you.&amp;nbsp; They do appear to offer a data set in the appendix of the manuscript.&amp;nbsp; I will see if I can retrieve it and run the tests that you suggest.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will let you know what transpires. Again, thank you for your input.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2022 21:39:48 GMT</pubDate>
    <dc:creator>cbhalpern</dc:creator>
    <dc:date>2022-03-10T21:39:48Z</dc:date>
    <item>
      <title>Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468233#M71197</link>
      <description>&lt;P&gt;I am running a series of mixed models in JMP 16 (one random effect, multiple fixed&amp;nbsp;effects).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to generate estimates of:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Marginal R^2&lt;/STRONG&gt; (R^2m):&amp;nbsp; the proportion of variance explained by the&lt;STRONG&gt; fixed effects&lt;/STRONG&gt; relative to the &lt;STRONG&gt;overall variance&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Conditional R^2&lt;/STRONG&gt; (R^2c): the proportion of variance explained by &lt;STRONG&gt;both fixed and random effects&lt;/STRONG&gt; relative to the &lt;STRONG&gt;overall variance&lt;/STRONG&gt;&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Is there a script readily available?&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, how does JMP compute the &lt;STRONG&gt;R^2 &lt;/STRONG&gt;and &lt;STRONG&gt;adjusted R^2 &lt;/STRONG&gt;in the "Summary of Fit" tab in the Fit Model report for a mixed model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note regarding conditional and marginal R^2: &lt;/STRONG&gt;The method proposed by Nakagawa &amp;amp; Schielzeth (2013) applies to random intercept models. Johnson (2014) proposed an extension for models that include random slopes (see also Nakagawa, Schielzeth, &amp;amp; Johnson 2017).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Johnson, P. C. D. 2014. &lt;/STRONG&gt;Extension of Nakagawa &amp;amp; Schielzeth’s R2GLMM to random slopes models. Methods in Ecology and Evolution 5: 944–46. doi:10.1111/2041-210X.12225.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Nakagawa, S., &amp;amp; H. Schielzeth. 2013.&lt;/STRONG&gt; A general and simple method for obtaining R2 from generalized linear mixed-effects models. Methods in Ecology and Evolution 4(2): 133–42. doi:10.1111/j.2041-210x.2012.00261.x.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Nakagawa, S., H. Schielzeth, &amp;amp; P. C. D. Johnson. 2017.&lt;/STRONG&gt; The coefficient of determination R2 and intra-class correlation coefficient from generalized linear mixed-effects models revisited and expanded. Journal of the Royal Society Interface 14(134). doi:10.1098/rsif.2017.0213.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:12:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468233#M71197</guid>
      <dc:creator>cbhalpern</dc:creator>
      <dc:date>2023-06-09T18:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468340#M71210</link>
      <description>&lt;P&gt;Did you have a look at the manual?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/16.1/#page/jmp/mixed-models-and-random-effect-models.shtml#ww790123" target="_blank"&gt;Mixed Models and Random Effect Models (jmp.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 08:01:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468340#M71210</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2022-03-10T08:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468370#M71218</link>
      <description>&lt;P&gt;Yes, I did, but I did not see reference to conditional or marginal R-squared, nor do I see where I can obtain the variance terms needed to compute the two statistics. For example, see this explanation for scripting in R:&amp;nbsp;&amp;nbsp;&lt;A href="http://samcarcagno.altervista.org/stat_notes/r2_lmm_jags/r_squared_lmm.html" target="_blank"&gt;Marginal and Conditional R2 for Linear Mixed Models in JAGS (samcarcagno.altervista.org)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 13:47:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468370#M71218</guid>
      <dc:creator>cbhalpern</dc:creator>
      <dc:date>2022-03-10T13:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468411#M71220</link>
      <description>&lt;P&gt;I think all the information are available in Mixed Model report. But it may require substantial knowledge to identify and collect them. I will give it a try. I use JMP sample data Animals as an example.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Part 1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;To answer how JMP gets R^2. Run the script embedded in the data table to bring up the report. And go to platform menu and use "Save Columns" -&amp;gt; "Conditional Pred Values" to save predictions. Now you get R^2 the same way as you get one from a linear least square model. Formula is here &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/summary-of-fit.shtml?os=win&amp;amp;source=application&amp;amp;utm_source=helpmenu&amp;amp;utm_medium=application#ww846953" target="_self"&gt;Summary of Fit&lt;/A&gt; . E.g. you need responses and predictions to get residuals and calculate sum of squares of errors SSE; you need responses and their mean to calculate sum of squares of total SST. Then R^2 is (SST - SSE)/SST. And here is my proof of calculation:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="peng_liu_0-1646925016549.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40694i40CF6E8C6C26E261/image-size/medium?v=v2&amp;amp;px=400" role="button" title="peng_liu_0-1646925016549.png" alt="peng_liu_0-1646925016549.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Part 2&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Now answer your remaining questions. You need sigma_f^2, sigma_a^2, and sigma_e^2.&lt;/P&gt;
&lt;P&gt;You can find sigma_e in Summary of Fit. It is Root Mean Square Error.&lt;/P&gt;
&lt;P&gt;You can find sigma_e^2 in REML Variance Component Estimates. It is the Var Component associated with Residual.&lt;/P&gt;
&lt;P&gt;Here is the proof of their relationship:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="peng_liu_1-1646925389183.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40699i26E2E4ED5D34536A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="peng_liu_1-1646925389183.png" alt="peng_liu_1-1646925389183.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can find sigma_a^2 in REML Variance Component Estimates. It is the Var Component associated with the random effect. For this example, there is just one component:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="peng_liu_2-1646925530088.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40701i3CF51603680A7B24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="peng_liu_2-1646925530088.png" alt="peng_liu_2-1646925530088.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now comes to sigma_f^2. This may require substantial knowledge of linear model. You may need to consult some textbooks to understand why so in the following steps. Here are the steps.&lt;/P&gt;
&lt;P&gt;You need Std Error of the fixed parameter estimates, and put them in a diagonal matrix called Matrix_S, with these Std Error on the diagonal.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="peng_liu_3-1646925667214.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40704iDC346E99019F6727/image-size/medium?v=v2&amp;amp;px=400" role="button" title="peng_liu_3-1646925667214.png" alt="peng_liu_3-1646925667214.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You need the correlation matrix of the fixed parameter estimates. You can find it by going to the platform menu "Estimates" &amp;gt; "Correlation of Estimates". But you don't need all of it, just the upper left square portion that is associated with fixed parameters. Put this portion of matrix in a matrix called Matrix_R.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="peng_liu_4-1646925856333.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40705iF0511976F7EAA5B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="peng_liu_4-1646925856333.png" alt="peng_liu_4-1646925856333.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now you need linear algebra to calculate the product of Matrix_S, Matrix_R, and Matrix_S again to get a new matrix. The result is the covariance matrix of the fixed parameters, call it COV. For these matrix operations, this page might be helpful: &lt;A href="https://blogs.sas.com/content/iml/2010/12/10/converting-between-correlation-and-covariance-matrices.html" target="_self"&gt;Converting a Correlation Matrix to a Covariance Matrix&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you need Parameter Estimates again, this time, the Estimate part. Put them in a row vector, call it VECTOR.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="peng_liu_5-1646926378307.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40706iE6F0E11C3FA08180/image-size/medium?v=v2&amp;amp;px=400" role="button" title="peng_liu_5-1646926378307.png" alt="peng_liu_5-1646926378307.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now, more linear algebra. you need to calculate VECTOR * COV * transpose(VECTOR). You have your sigma_f^2.&lt;/P&gt;
&lt;P&gt;Now you have all three pieces. The rest calculation is the easy part. But it may require quite some effort to write a script to do it automatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 15:57:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468411#M71220</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-03-10T15:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468432#M71224</link>
      <description>&lt;P&gt;Thank you very much for taking the time to provide a detailed explanation (and the associated visuals).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I think the linear algebra steps needed to compute the&amp;nbsp;&lt;SPAN&gt;sigma_f^2 component is beyond me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 16:07:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468432#M71224</guid>
      <dc:creator>cbhalpern</dc:creator>
      <dc:date>2022-03-10T16:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468517#M71229</link>
      <description>&lt;P&gt;From a hindsight, if the reference paper has a data set and model, and gives their results, may I suggest the following?&lt;/P&gt;
&lt;P&gt;Use their data set and fit their model in JMP. You get a JMP R^2. Compare JMP R^2 with their conditional R^2.&lt;/P&gt;
&lt;P&gt;Then, following the same steps above of calculating JMP R^2, but instead of using "Conditional Pred Values", you use "Predicted Values" under "Save Columns" menu, and calculate a different R^2, call it R*^2. Compare R*^2 with the marginal R^2 in the paper.&lt;/P&gt;
&lt;P&gt;Look how close the comparisons are. If you can do those, please post back what you find to let the community readers know. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 18:23:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468517#M71229</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-03-10T18:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468611#M71243</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; They do appear to offer a data set in the appendix of the manuscript.&amp;nbsp; I will see if I can retrieve it and run the tests that you suggest.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will let you know what transpires. Again, thank you for your input.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 21:39:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468611#M71243</guid>
      <dc:creator>cbhalpern</dc:creator>
      <dc:date>2022-03-10T21:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468673#M71249</link>
      <description>&lt;P&gt;Hello again,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried running the "size model" data from Nakagawa through the mixed modeling procedure in JMP (via mixed model or SLS w/ REML). The output resulted in similar variance components for the random effects and similar AIC, BIC values, but the coefficients for the fixed effects differed from those in the Nakagawa paper (see Table 3 in the attached pdf).&amp;nbsp; Might this be because R and JMP use a different base condition for the coefficients of the 3 categorical treatments (e.g., males instead of females)?&lt;/P&gt;&lt;P&gt;The R^2 from JMP (0.755) was fairly similar to the conditional R^2 in the paper (0.741), but not quite the same. I generated a column of predicted values from the JMP model and regressed those against the raw data (if I understood your suggestion correctly). This produced an R^2 (0.402) fairly similar to their marginal R^2 (0.392), but again, not quite the same. Do you have thoughts on these differences?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the Nakagawa paper and the imported data file -- the latter with two additional columns: the predicted and conditional predicted values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you wish to explore the data further, please do so. I will be interested to learn more.&lt;/P&gt;&lt;P&gt;Thank you, again.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 00:35:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468673#M71249</guid>
      <dc:creator>cbhalpern</dc:creator>
      <dc:date>2022-03-11T00:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468674#M71250</link>
      <description>&lt;P&gt;Additional observation:&amp;nbsp; the intercept value from JMP also differed from that reported in the paper for the full model, but the intercept was the same as that reported for the null model. Another small difference in the results.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 00:42:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468674#M71250</guid>
      <dc:creator>cbhalpern</dc:creator>
      <dc:date>2022-03-11T00:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468700#M71252</link>
      <description>&lt;P&gt;You did correctly! And I am able to match JMP and R results. The differences that you see is due to differences between design matrix coding conventions.&lt;/P&gt;
&lt;P&gt;Here is the screenshot of results side by side. First, variance components completely match. Second, JMP fixed effect parameter estimates (except intercept) are exactly half of those from R. Std Error is also by half. R use (0, 1) coding for binary X variables, JMP use (-1, 1) coding for binary X variables.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="peng_liu_0-1646963979556.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40723i7A0A6A672D607A03/image-size/large?v=v2&amp;amp;px=999" role="button" title="peng_liu_0-1646963979556.png" alt="peng_liu_0-1646963979556.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am not able to verify the proposed R^2 numbers in the paper using the numbers that I see here, regardless from JMP numbers or R numbers. I kind of lost about what they have done. I notice that the GLMM versions of their R^2 are reported, which involves sigma_d^2, which I don't understand what it is, it's in a separate paper. Maybe that is the missing piece. In addition, JMP reports a slight correlation between random effects. The paper does not consider correlation among random effects. This maybe a second missing piece.&lt;/P&gt;
&lt;P&gt;The R^2 that JMP produces and the other one that I suggested are conceptually similar to what they want to achieve. But I cannot figure out how to get their numbers. I am glad the numbers are rather close.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 02:14:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468700#M71252</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-03-11T02:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468704#M71254</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. That makes sense re: the fixed effects coefficients (although I don't understand the difference in the intercept).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a web site that explains the calculation and components of R^2(m) and R^2(c)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;A href="https://jonlefcheck.net/2013/03/13/r2-for-linear-mixed-effects-models/" target="_blank"&gt;https://jonlefcheck.net/2013/03/13/r2-for-linear-mixed-effects-models/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It describes the last two terms in the denominator as follows: " ... t&lt;SPAN&gt;he last two terms add up the residual variance and are the additive dispersion component (for non-normal models) and the distribution-specific variance".&amp;nbsp; Not sure what this means.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you think these explain the small difference (i.e., they are minor adjustments)?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 02:31:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468704#M71254</guid>
      <dc:creator>cbhalpern</dc:creator>
      <dc:date>2022-03-11T02:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468706#M71256</link>
      <description>&lt;P&gt;Sorry, one more related question.&amp;nbsp; If one was going to approximate the conditional R^2 from the full model output in JMP, would you suggest using R^2 or adjusted R^2?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 02:40:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468706#M71256</guid>
      <dc:creator>cbhalpern</dc:creator>
      <dc:date>2022-03-11T02:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468708#M71257</link>
      <description>&lt;P&gt;This screenshot show how intercepts are matched under different encoding schemes. And yes, those extra terms are not clear to me. In addition, the authors mentioned not to use degree of freedom correction for computing variances. All those are important details but not clear to me.&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="peng_liu_0-1646966716968.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40724i65A4E658B16F24A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="peng_liu_0-1646966716968.png" alt="peng_liu_0-1646966716968.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 02:48:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468708#M71257</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-03-11T02:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468709#M71258</link>
      <description>&lt;P&gt;"Additional observation: the intercept value from JMP also differed from that reported in the paper for the full model, but the intercept was the same as that reported for the null model. Another small difference in the results. "&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is expected. The encoding in JMP will make the intercept the ground mean in this case. How to match the intercepts under the full model, see my earlier post.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 02:52:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468709#M71258</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-03-11T02:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468710#M71259</link>
      <description>&lt;P&gt;"Sorry, one more related question. If one was going to approximate the conditional R^2 from the full model output in JMP, would you suggest using R^2 or adjusted R^2?"&lt;/P&gt;
&lt;P&gt;Do you mean whether use JMP's R^2 or JMP's Adjusted R^2 to approximate the conditional R^2 in the paper? If so, I am not sure. Is there an "adjusted" version for the conditional R^2?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 02:59:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468710#M71259</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-03-11T02:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468711#M71260</link>
      <description>&lt;P&gt;Yes, I meant whether to use JMP's R^2 or JMP's adjusted R^2 (both deviate slightly from the conditional R^2 in the example)&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not seen reference to an "adjusted" conditional R^2 in the literature.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 03:34:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468711#M71260</guid>
      <dc:creator>cbhalpern</dc:creator>
      <dc:date>2022-03-11T03:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468874#M71272</link>
      <description>&lt;P&gt;Opinions, suggestions, tentative conclusions...&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Proposed conditional and marginal R^2 are conceptually similar to what JMP's traditional R^2 wants to summarize. JMP's traditional R^2 does not have any of the problems the authors want to address in the early part of their paper.&lt;/LI&gt;
&lt;LI&gt;The calculation of proposed conditional and marginal R^2 is not clear to me. Using the information available from model fitting, I cannot reproduce their results. There is important information not clear to me.&lt;/LI&gt;
&lt;LI&gt;If you can reproduce their results, then you may use them.&lt;/LI&gt;
&lt;LI&gt;If you cannot reproduce their results, don't say JMP's traditional R^2 are approximations to theirs. That is unknown. Doubts:
&lt;OL class="lia-list-style-type-lower-roman"&gt;
&lt;LI&gt;If JMP's traditional R^2 is always close to theirs, why prefer a complex calculation to a simple calculation.&lt;/LI&gt;
&lt;LI&gt;If JMP's traditional R^2 and their versions are different from time to time, then a better understanding is needed, starting with reproducing their results.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 11 Mar 2022 14:38:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468874#M71272</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-03-11T14:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468888#M71274</link>
      <description>&lt;P&gt;I agree with your concerns. However, the literature does suggest that an R^2 generated from a mixed model is inherently problematic. That said, some measure of the variation explained by the model terms is useful (and quite different from using AIC to select among candidate models).&lt;/P&gt;&lt;P&gt;My understanding is that R^2 and adj. R^2 produced by JMP are intended to represent the variation explained by the combination of random and fixed effects, i.e., the model in total (akin to the conditional R^2).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would you describe the R^2 obtained by regressing raw against the predicted values, as you suggested earlier?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the continued discussion on this topic.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 15:01:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468888#M71274</guid>
      <dc:creator>cbhalpern</dc:creator>
      <dc:date>2022-03-11T15:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468942#M71276</link>
      <description>&lt;P&gt;The R^2 calculated using predicted values is the counterpart of the marginal R^2 in the paper. JMP does not produce that version of R^2. I cannot think of why I should use it in the context of mixed models.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 15:47:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468942#M71276</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-03-11T15:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional and marginal R-squared for mixed models</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468956#M71277</link>
      <description>&lt;P&gt;If one is forced to use a mixed model due to the presence of a random effect (e.g., a whole plot in split-plot experimental design), but one is primarily interested in the fixed effects (experimental treatments), the "marginal" R^2 would provide a measure of the variation explained by the fixed effects.&lt;/P&gt;&lt;P&gt;Thanks for your feedback.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 16:37:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-conditional-and-marginal-R-squared-for-mixed-models/m-p/468956#M71277</guid>
      <dc:creator>cbhalpern</dc:creator>
      <dc:date>2022-03-11T16:37:47Z</dc:date>
    </item>
  </channel>
</rss>

