<?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 BLUP differences using PROC MIXED in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Estimating-BLUP-differences-using-PROC-MIXED/m-p/5745#M2320</link>
    <description>Hi:&lt;BR /&gt;
  This is not a question related to ODS or the Base SAS Reporting procedures (PRINT, REPORT, TABULATE).&lt;BR /&gt;
 &lt;BR /&gt;
  Your best source of help for this question is SAS Technical Support. To send a question to Tech Support, go to &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt; and in the left-hand navigation pane, click on the link entitled "Submit a Problem".&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Fri, 30 Nov 2007 00:49:23 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-11-30T00:49:23Z</dc:date>
    <item>
      <title>Estimating BLUP differences using PROC MIXED</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Estimating-BLUP-differences-using-PROC-MIXED/m-p/5744#M2319</link>
      <description>I have been using PROC MIXED to analyze data with the following structure:&lt;BR /&gt;
&lt;BR /&gt;
There are N individuals.  Each individual is a member of a single population (P).  Each population is a member of a single superpopulation (S).  So there is nesting.&lt;BR /&gt;
&lt;BR /&gt;
The individuals are random members of the population.  The populations and superpopulations are specifically chosen.  Two individuals can be measured using the same assay.&lt;BR /&gt;
&lt;BR /&gt;
I use the following code to estimate parameters in the model:&lt;BR /&gt;
&lt;BR /&gt;
      proc mixed ic ratio cl data=work.data nobound;&lt;BR /&gt;
        class super pop indiv assay;&lt;BR /&gt;
        model measurement =  super pop(super) /  ddfm=kr outp=resids;&lt;BR /&gt;
        random indiv / subject = pop solution;&lt;BR /&gt;
        random assay ;&lt;BR /&gt;
        lsmeans super / diff;&lt;BR /&gt;
        lsmeans pop(super) / diff;&lt;BR /&gt;
        run;&lt;BR /&gt;
&lt;BR /&gt;
This assumes a within population/between individual variance that is the same between populations.&lt;BR /&gt;
&lt;BR /&gt;
The 'solution' statement on the random statement gives me what I think are predicted deviations of the individuals from their population mean.  I would like to be able to estimate differences between individuals both within and between populations and test to see whether they are signficant or not.&lt;BR /&gt;
&lt;BR /&gt;
To do this, I added contrast statements :&lt;BR /&gt;
&lt;BR /&gt;
For individuals in the same population:  &lt;BR /&gt;
contrast 'FP10-FP11 nar' |   indiv 1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0  ;&lt;BR /&gt;
&lt;BR /&gt;
This seems to work in that it gives me a result.&lt;BR /&gt;
&lt;BR /&gt;
If I look at individuals in different populations but the same superpopulation:&lt;BR /&gt;
contrast 'FP10-G112 nar'      pop(super) 1 -1 0 0 0  |   &lt;BR /&gt;
indiv 1 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0  ;&lt;BR /&gt;
&lt;BR /&gt;
This has strange behavior.  The estimated difference FP10-G112 is the same as the estimated difference between FP10-G120 (same populations) but different from FP12-G112.  So there is a weird asymmetry.  And besides, they shouldn't give the same result.&lt;BR /&gt;
&lt;BR /&gt;
If I look at individuals in different superpopulations (and therefore in different populations too):&lt;BR /&gt;
contrast 'FP11-K121 nar'  &lt;BR /&gt;
         super -1 1 &lt;BR /&gt;
        pop(super) 1 0 -1 0 0  | &lt;BR /&gt;
        indiv 0 1 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0  ;&lt;BR /&gt;
&lt;BR /&gt;
This never returns a result.&lt;BR /&gt;
&lt;BR /&gt;
If I just estimate the BLUPs (by just putting a single 1 for the appropriate super, pop, and indiv) it doesn't give me the same thing as if I add up the estimates from the solution statements for the appropriate effects.  &lt;BR /&gt;
&lt;BR /&gt;
So my question:&lt;BR /&gt;
&lt;BR /&gt;
Am I using the contrast statement incorrectly?  It looks like the levels within an effect are in alphabetical order.  I get the same result described above if I use the 'estimate' statement.&lt;BR /&gt;
&lt;BR /&gt;
Is there an alternative way to do this?  The main problem is getting the appropriate degrees of freedom and standard deviation for the t-test.  Can I somehow do this using other output?&lt;BR /&gt;
&lt;BR /&gt;
Any help would be much appreciated.</description>
      <pubDate>Thu, 29 Nov 2007 23:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Estimating-BLUP-differences-using-PROC-MIXED/m-p/5744#M2319</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-11-29T23:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating BLUP differences using PROC MIXED</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Estimating-BLUP-differences-using-PROC-MIXED/m-p/5745#M2320</link>
      <description>Hi:&lt;BR /&gt;
  This is not a question related to ODS or the Base SAS Reporting procedures (PRINT, REPORT, TABULATE).&lt;BR /&gt;
 &lt;BR /&gt;
  Your best source of help for this question is SAS Technical Support. To send a question to Tech Support, go to &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt; and in the left-hand navigation pane, click on the link entitled "Submit a Problem".&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 30 Nov 2007 00:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Estimating-BLUP-differences-using-PROC-MIXED/m-p/5745#M2320</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-11-30T00:49:23Z</dc:date>
    </item>
  </channel>
</rss>

