<?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: percentage response + doubly repeated measures in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/percentage-response-doubly-repeated-measures/m-p/308968#M16354</link>
    <description>&lt;P&gt;Thanks a lot for the time spent. It is really helpful. I am going to look the Stroup's book.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2016 10:39:09 GMT</pubDate>
    <dc:creator>tlse31</dc:creator>
    <dc:date>2016-11-03T10:39:09Z</dc:date>
    <item>
      <title>percentage response + doubly repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/percentage-response-doubly-repeated-measures/m-p/301724#M16059</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to figure out how to analyse a percentage on a the following design: &amp;nbsp; treatment (2 levels), celltype (2 levels), area (2 levels). The measure is repeated on celltype and area.&lt;/P&gt;&lt;P&gt;In an exploratory purpose, I would like to evaluate the treatment effect per intersection celltype*area.&lt;/P&gt;&lt;P&gt;I am note sure of the code below (2 codes).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;code 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=yourdata;&lt;/P&gt;&lt;P&gt;class subject&amp;nbsp;treatment &lt;SPAN&gt;celltype area &lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;model r/Ntot=treatment|&lt;SPAN&gt;celltype|area &lt;/SPAN&gt;/ ddfm=kr solution &amp;nbsp;oddsRATIO;&lt;/P&gt;&lt;P&gt;random &lt;SPAN&gt;area&lt;/SPAN&gt;/subject=&lt;SPAN&gt;animal(treatment)&lt;/SPAN&gt; type=cs;&lt;/P&gt;&lt;P&gt;random &lt;SPAN&gt;celltype &lt;/SPAN&gt;/subject=&lt;SPAN&gt;animal(treatment)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;type=cs&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;lsmeans &lt;SPAN&gt;treatment &lt;/SPAN&gt;*&lt;SPAN&gt;celltype&lt;/SPAN&gt;*&lt;SPAN&gt;area&lt;/SPAN&gt;/ODDS&lt;BR /&gt;oddsratio&lt;BR /&gt;slicediff=&lt;SPAN&gt;celltype&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;are&lt;/SPAN&gt;&lt;BR /&gt;slice=&lt;SPAN&gt;celltype&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;are&lt;/SPAN&gt;&lt;BR /&gt;adjust=dunnett cl;&lt;BR /&gt;ods output sliceDiffs=GlimMixsliceDiffs;&lt;BR /&gt;ods output lsmeans=estimate;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;code 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=yourdata;&lt;/P&gt;&lt;P&gt;class subject&amp;nbsp;treatment &lt;SPAN&gt;celltype area &lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;model r/Ntot=treatment|&lt;SPAN&gt;celltype|area &lt;/SPAN&gt;/ ddfm=kr solution &amp;nbsp;oddsRATIO;&lt;/P&gt;&lt;P&gt;random &lt;SPAN&gt;animal(treatment)&lt;/SPAN&gt; &lt;SPAN&gt;celltype&lt;/SPAN&gt;*&lt;SPAN&gt;animal(treatment)&lt;/SPAN&gt; &lt;SPAN&gt;area &lt;/SPAN&gt;*&lt;SPAN&gt;animal(treatment)&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;lsmeans &lt;SPAN&gt;treatment &lt;/SPAN&gt;*&lt;SPAN&gt;celltype&lt;/SPAN&gt;*&lt;SPAN&gt;area&lt;/SPAN&gt;/ODDS&lt;BR /&gt;oddsratio&lt;BR /&gt;slicediff=&lt;SPAN&gt;celltype&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;are&lt;/SPAN&gt;&lt;BR /&gt;slice=&lt;SPAN&gt;celltype&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;are&lt;/SPAN&gt;&lt;BR /&gt;adjust=dunnett cl;&lt;BR /&gt;ods output sliceDiffs=GlimMixsliceDiffs;&lt;BR /&gt;ods output lsmeans=estimate;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I kindly ask users&amp;nbsp;for useful suggestions.&lt;/P&gt;&lt;P&gt;Audrey&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 09:51:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/percentage-response-doubly-repeated-measures/m-p/301724#M16059</guid>
      <dc:creator>tlse31</dc:creator>
      <dc:date>2016-09-30T09:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: percentage response + doubly repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/percentage-response-doubly-repeated-measures/m-p/308502#M16326</link>
      <description>&lt;P&gt;Code 2 does not recognize that the measures within area or celltype might be correlated--it calculates a variance component over all levels. &amp;nbsp;I am inclined toward code 1, but maybe with some minor changes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, if you are going to model the repeated effects as G side, you may wish to change to the following, and get estimates conditional on the random effects. &amp;nbsp;Under this approach, ddfm=kr will not work:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=yourdata method=laplace;
class subject treatment celltype area ;
model r/Ntot=treatment|celltype|area / solution  oddsRATIO;
random area/subject=animal(treatment) type=cs;
random celltype /subject=animal(treatment) type=cs;
lsmeans treatment *celltype*area/ODDS
oddsratio
slicediff=celltype*area
slice=celltype*area
adjust=dunnett cl;
ods output sliceDiffs=GlimMixsliceDiffs;
ods output lsmeans=estimate;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Alternatively, you could model as true repeated measures (R side) and get marginal estimates by doing the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=yourdata;
class subject treatment celltype area ;
model r/Ntot=treatment|celltype|area / ddfm=kr solution  oddsRATIO;
random area/subject=animal(treatment) type=cs residual;
random celltype /subject=animal(treatment) type=cs residual;
lsmeans treatment *celltype*area/ODDS
oddsratio
slicediff=celltype*area
slice=celltype*area
adjust=dunnett cl;
ods output sliceDiffs=GlimMixsliceDiffs;
ods output lsmeans=estimate;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Of these, the marginal approach will be biased somewhat (see Stroup's book), but that is not necessarily a bad thing as the error will likely be reduced.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&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>Tue, 01 Nov 2016 14:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/percentage-response-doubly-repeated-measures/m-p/308502#M16326</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-11-01T14:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: percentage response + doubly repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/percentage-response-doubly-repeated-measures/m-p/308968#M16354</link>
      <description>&lt;P&gt;Thanks a lot for the time spent. It is really helpful. I am going to look the Stroup's book.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 10:39:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/percentage-response-doubly-repeated-measures/m-p/308968#M16354</guid>
      <dc:creator>tlse31</dc:creator>
      <dc:date>2016-11-03T10:39:09Z</dc:date>
    </item>
  </channel>
</rss>

