<?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 How to build a Proc Mixed model: repeated pig data ? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-build-a-Proc-Mixed-model-repeated-pig-data/m-p/86489#M24707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;About data: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Prepared 4 different diets for pig industry: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;diet&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Ingredient A&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Ingredient B&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A_low_B_low&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Low&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Low&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A_high_B_low&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;High&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Low&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A_low_B_high&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Low&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;High&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A_high_B_high&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;High&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;High&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) Twelve (12) group pigs were randomly assigned to one of the diets, so 3 group pigs per diet treat. &lt;/P&gt;&lt;P&gt;(3) Twelve group pigs' weight (total) was monitored for 30 days (daily total weight). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt;The following questions might be asked: &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt;(1)&amp;nbsp; &lt;SPAN style="font-family: 'Times New Roman', serif;"&gt;Does the ingredient A affect pig performance? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt;(2) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman', serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman', serif;"&gt;Does the ingredient B affect &lt;SPAN style="font-family: 'Times New Roman', serif;"&gt;pig&lt;/SPAN&gt; performance? &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;(3) &lt;SPAN style="font-family: 'Times New Roman', serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman', serif;"&gt;Does age affect &lt;SPAN style="font-family: 'Times New Roman', serif;"&gt;pig&lt;/SPAN&gt; performance? &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt;(4)&amp;nbsp; Is there evidence of interactions among ingredient A, B and Age? &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to build the flowing model, but I am not so sure it is correct, please help: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Title "proc mixture";&lt;/P&gt;&lt;P&gt;proc mixed data=pigs; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Class group ingredA ingredB Age ; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Model Weight =ingredA|ingredB;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; random group;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; repeated Age/type=cs subject=group;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2012 21:58:46 GMT</pubDate>
    <dc:creator>JeffNCSU</dc:creator>
    <dc:date>2012-08-07T21:58:46Z</dc:date>
    <item>
      <title>How to build a Proc Mixed model: repeated pig data ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-build-a-Proc-Mixed-model-repeated-pig-data/m-p/86489#M24707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;About data: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Prepared 4 different diets for pig industry: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;diet&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Ingredient A&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Ingredient B&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A_low_B_low&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Low&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Low&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A_high_B_low&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;High&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Low&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A_low_B_high&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Low&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;High&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A_high_B_high&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;High&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;High&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) Twelve (12) group pigs were randomly assigned to one of the diets, so 3 group pigs per diet treat. &lt;/P&gt;&lt;P&gt;(3) Twelve group pigs' weight (total) was monitored for 30 days (daily total weight). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt;The following questions might be asked: &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt;(1)&amp;nbsp; &lt;SPAN style="font-family: 'Times New Roman', serif;"&gt;Does the ingredient A affect pig performance? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt;(2) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman', serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman', serif;"&gt;Does the ingredient B affect &lt;SPAN style="font-family: 'Times New Roman', serif;"&gt;pig&lt;/SPAN&gt; performance? &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;(3) &lt;SPAN style="font-family: 'Times New Roman', serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman', serif;"&gt;Does age affect &lt;SPAN style="font-family: 'Times New Roman', serif;"&gt;pig&lt;/SPAN&gt; performance? &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt;(4)&amp;nbsp; Is there evidence of interactions among ingredient A, B and Age? &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to build the flowing model, but I am not so sure it is correct, please help: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Title "proc mixture";&lt;/P&gt;&lt;P&gt;proc mixed data=pigs; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Class group ingredA ingredB Age ; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Model Weight =ingredA|ingredB;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; random group;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; repeated Age/type=cs subject=group;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 21:58:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-build-a-Proc-Mixed-model-repeated-pig-data/m-p/86489#M24707</guid>
      <dc:creator>JeffNCSU</dc:creator>
      <dc:date>2012-08-07T21:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a Proc Mixed model: repeated pig data ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-build-a-Proc-Mixed-model-repeated-pig-data/m-p/86490#M24708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is close, but does not address possible interactions between age and the ingredients.&amp;nbsp; How about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed data=pigs; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Class group ingredA ingredB Age ; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Model Weight =ingredA|ingredB|Age;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; random group;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; repeated Age/type=cs subject=group;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several other covariance structures you may want to investigate.&amp;nbsp; In particular, heterogeneous compound symmetry (type=csh), and, if the age variable is equally spaced in time, autoregressive structures such as ar(1) and arh(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, if the interaction of Age with the dietary factors is significant (either two-way or three-way), when it comes time to compare marginal means using the lsmeans statement, you will want to look at the AT= option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would strongly recommend looking at Littel et al.'s SAS for Mixed Models, 2nd ed., which is a storehouse of information on repeated measures analysis of covariance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 12:22:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-build-a-Proc-Mixed-model-repeated-pig-data/m-p/86490#M24708</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-08-08T12:22:00Z</dc:date>
    </item>
  </channel>
</rss>

