<?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: testing predictive relationship with random effects in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/testing-predictive-relationship-with-random-effects/m-p/232186#M12209</link>
    <description>&lt;P&gt;Hello Steve,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- code_ind is the identification of the individual for each species. Basically it is the name of the species + a number or letter juxtaposed at the end&lt;/P&gt;
&lt;P&gt;I ahev three individuals per species, that's why I think I should as a "species" random effect in my model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- The PROC MIXED did not converge either when I use only one random statement as the one you suggested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- It is converging of course withour random statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate your help, thank you very much&lt;/P&gt;</description>
    <pubDate>Thu, 29 Oct 2015 12:30:00 GMT</pubDate>
    <dc:creator>celdelmas</dc:creator>
    <dc:date>2015-10-29T12:30:00Z</dc:date>
    <item>
      <title>testing predictive relationship with random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/testing-predictive-relationship-with-random-effects/m-p/231803#M12195</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;I&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: 20px;"&gt;am analyzing a data set of quantitative traits measured on 15 species (3 individuals per species).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I would like to test the predictive relationship between one particular variable (Y) and the other traits (X1 to X14).&lt;/P&gt;&lt;P&gt;I thought that I should either realize a regression analyses (PROC REG) between pairs of traits on trait means per species OR realize a mixed model with the species entered as random for examples:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution1:&lt;/P&gt;&lt;P&gt;PROC REG data=mean.data;&lt;/P&gt;&lt;P&gt;model Ym=X1m;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ym and X1m are species means for these traits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution2:&lt;/P&gt;&lt;P&gt;PROC MIXED&amp;nbsp;data=mydata;&lt;BR /&gt;class species code_ind;&lt;BR /&gt;model Y=X1 / solution;&lt;BR /&gt;random int/sub=species type=un ;&lt;BR /&gt;random int/subject=species(code_ind) type=un;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution 2 did not converge maybe because I don't have enough individuals per species?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I use a PROC MIXED on this dataset? (Y follows a normal distribution, X1 to X14 are either proportion or length&amp;nbsp;measurements)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If someone could advise me on this analysis, it&amp;nbsp;will be of great help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chloe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 12:32:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/testing-predictive-relationship-with-random-effects/m-p/231803#M12195</guid>
      <dc:creator>celdelmas</dc:creator>
      <dc:date>2015-10-27T12:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: testing predictive relationship with random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/testing-predictive-relationship-with-random-effects/m-p/232183#M12206</link>
      <description>&lt;P&gt;One question and one observation. &amp;nbsp;The question first--what does the variable code_ind represent? &amp;nbsp;That is not clear from your design. &amp;nbsp;Accommodating it correctly will enable the model to more accurately represent your data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The observation--you are currently fitting the covariance matrix between species twice, and the second random statement fits the covariance on a more "granular" basis. &amp;nbsp;With 15 species, there are 105 parameters to estimate with only one unstructured statement. &amp;nbsp;Here you are at least doubling that (if not even more). &amp;nbsp;And on that note, you almost certainly lack sufficient data to fit such a model, if in fact there are only 45 observations in the dataset. &amp;nbsp;Try starting with a variance component due only to species, like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;random intercept/subject=species type=vc;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See how that behaves. &amp;nbsp;Then, based on what code_ind represents, you might be able to fit something that also incorporates that variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 12:12:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/testing-predictive-relationship-with-random-effects/m-p/232183#M12206</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-10-29T12:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: testing predictive relationship with random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/testing-predictive-relationship-with-random-effects/m-p/232186#M12209</link>
      <description>&lt;P&gt;Hello Steve,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- code_ind is the identification of the individual for each species. Basically it is the name of the species + a number or letter juxtaposed at the end&lt;/P&gt;
&lt;P&gt;I ahev three individuals per species, that's why I think I should as a "species" random effect in my model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- The PROC MIXED did not converge either when I use only one random statement as the one you suggested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- It is converging of course withour random statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate your help, thank you very much&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 12:30:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/testing-predictive-relationship-with-random-effects/m-p/232186#M12209</guid>
      <dc:creator>celdelmas</dc:creator>
      <dc:date>2015-10-29T12:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: testing predictive relationship with random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/testing-predictive-relationship-with-random-effects/m-p/232193#M12211</link>
      <description>&lt;P&gt;Is the model "approaching" convergence, or just jumping around? &amp;nbsp;Look at the objective function in the iteration history. &amp;nbsp;If you are stopping at iteration 50, you will need to specify MAXITER= &amp;lt;some number larger than 50&amp;gt; in the PROC MIXED statement. &amp;nbsp;Try setting it at 500, and then looking at the objective function values. &amp;nbsp;You may have to work with the CONVF, CONVG or CONVH options to get convergence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But that may be answering the wrong question. &amp;nbsp;You have 15 species represented. &amp;nbsp;By including species as a random effect, you are going to get estimates and errors for a broad inference space that assumes that the 15 species are a random sample of all possible species in the area. &amp;nbsp;Is that a reasonable assumption? &amp;nbsp;It may not be--your interest may be in only those 15 species, in which case a fixed effect &amp;nbsp;might be a better approach. &amp;nbsp;In that case, your model statement would look something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;model Y=X1 species species*X1 / solution;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and there would be no random statement. &amp;nbsp;Think on this a while.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And (naturally) there is yet another approach, that of getting a BLUP estimate of the slope for each species. &amp;nbsp;But I don't think that is quite where you need to be (yet).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 13:03:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/testing-predictive-relationship-with-random-effects/m-p/232193#M12211</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-10-29T13:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: testing predictive relationship with random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/testing-predictive-relationship-with-random-effects/m-p/232340#M12213</link>
      <description>&lt;P&gt;Thank you for your answer!&lt;/P&gt;
&lt;P&gt;The model stops at N=43 iterations even with the MAXITER statement.&lt;/P&gt;
&lt;P&gt;If I use a PROC GLM with species as a fixed effect (&lt;SPAN&gt;model Y=X1 species species*X1 / solution) I cannot obtain a statistic value for the interaction and I have to look at Type I SS to get a result for X1.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; Proc GLM data=mydata  ;
   class species ;
   model Y=X1 species  X1*species/ solution;
   run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;ARTICLE id="IDX4"&gt;
&lt;TABLE class="table"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="b header" scope="col"&gt;Source&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;DDL&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Type I SS&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Carré moyen&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Valeur F&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Pr&amp;nbsp;&amp;gt;&amp;nbsp;F&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="rowheader" scope="row"&gt;X1&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;93.3435020&lt;/TD&gt;
&lt;TD class="r data"&gt;93.3435020&lt;/TD&gt;
&lt;TD class="r data"&gt;Infin&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="rowheader" scope="row"&gt;species&lt;/TH&gt;
&lt;TD class="r data"&gt;19&lt;/TD&gt;
&lt;TD class="r data"&gt;107.4136910&lt;/TD&gt;
&lt;TD class="r data"&gt;5.6533522&lt;/TD&gt;
&lt;TD class="r data"&gt;Infin&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="rowheader" scope="row"&gt;X1*species&lt;/TH&gt;
&lt;TD class="r data"&gt;19&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0000000&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0000000&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/ARTICLE&gt;
&lt;ARTICLE id="IDX5"&gt;
&lt;TABLE class="table"&gt;&lt;COLGROUP&gt;&lt;COL /&gt;&lt;/COLGROUP&gt;&lt;COLGROUP&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="b header" scope="col"&gt;Source&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;DDL&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Type III SS&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Carré moyen&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Valeur F&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Pr&amp;nbsp;&amp;gt;&amp;nbsp;F&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="rowheader" scope="row"&gt;X1&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;0.00000000&lt;/TD&gt;
&lt;TD class="r data"&gt;0.00000000&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="rowheader" scope="row"&gt;species&lt;/TH&gt;
&lt;TD class="r data"&gt;19&lt;/TD&gt;
&lt;TD class="r data"&gt;1.05943956&lt;/TD&gt;
&lt;TD class="r data"&gt;0.05575998&lt;/TD&gt;
&lt;TD class="r data"&gt;Infin&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="rowheader" scope="row"&gt;prop_lignifi*species&lt;/TH&gt;
&lt;TD class="r data"&gt;19&lt;/TD&gt;
&lt;TD class="r data"&gt;0.00000000&lt;/TD&gt;
&lt;TD class="r data"&gt;0.00000000&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I ommit the interaction and look at Type 1 SS, I get results (same as above)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought of using BLUP but I was not sure this is appropriated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally maybe doing a regression on the averaged values per species could be the better (simplier but correct) way to test my hypothesis (X1 affects Y)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again for your comments!&lt;/P&gt;
&lt;/ARTICLE&gt;</description>
      <pubDate>Thu, 29 Oct 2015 21:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/testing-predictive-relationship-with-random-effects/m-p/232340#M12213</guid>
      <dc:creator>celdelmas</dc:creator>
      <dc:date>2015-10-29T21:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: testing predictive relationship with random effects</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/testing-predictive-relationship-with-random-effects/m-p/233137#M12281</link>
      <description>&lt;P&gt;Consider fitting the fixed effect model as:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc GLM data=mydata  ;
   class species ;
   model Y=species  X1*species/ noint solution;
   run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This should give a separate intercept and slope for each species, and should result in Type III F tests that don't go to infinity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 18:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/testing-predictive-relationship-with-random-effects/m-p/233137#M12281</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-11-04T18:38:07Z</dc:date>
    </item>
  </channel>
</rss>

