<?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: use of events/trial syntax with correlated data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/use-of-events-trial-syntax-with-correlated-data/m-p/387170#M20160</link>
    <description>&lt;P&gt;Keep in mind that all observations with the same value of the SUBJECT= variable in GENMOD's REPEATED statement are considered correlated, and any two observations with different values are considered uncorrelated. Further, the event/trials syntax allows you to specify a set of independent trials. So, the two analyses are making very different assumptions about the data. With events/trials syntax,&amp;nbsp;the 36 trials in the clinic 1, trt 1 set are treated as independent as are the 37 trials in the clinic 1, trt 2 set, but any two trials in differing sets are treated as correlated. However, in the analysis without events trials syntax, all 36+37 trials in clinic 1 are treated as correlated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, because the working correlation in the events/trials analysis is extremely high, GENMOD is unable to converge. &amp;nbsp;If you use&amp;nbsp;type=fixed(1,.99,.99,1) instead of type=cs to limit the correlation, it can converge.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2017 19:36:26 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2017-08-10T19:36:26Z</dc:date>
    <item>
      <title>use of events/trial syntax with correlated data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/use-of-events-trial-syntax-with-correlated-data/m-p/386955#M20151</link>
      <description>&lt;P&gt;I tried to analyze the data from SAS paper 261-27 (Kuss Oliver) with the events/trial syntax both with proc genmod and with proc glimmix and found different results? Should the single trial syntax be used?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the full code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data infection_grouped ;
input clinic treatment x n ;
datalines ;
1 1 11 36 
1 0 10 37
2 1 16 20
2 0 22 32
3 1 14 19
3 0 7 19
4 1 2 16
4 0 1 17
5 1 6 17
5 0 0 12
6 1 1 11
6 0 0 10
7 1 1 5
7 0 1 9
8 1 4 6
8 0 6 7
run;
data infection_bin (drop=i);
set infection_grouped ;
do i=1 to n;
if i&amp;lt;=x then cure=1;
if i&amp;gt;x then cure=0;
status = 2-cure;
output;
end;
run;&lt;BR /&gt;
* with proc genmod the data must be ungrouped;
proc genmod data=infection_bin descending order=data;
class treatment clinic;
model cure = treatment / d=bin link=logit;
repeated subject=clinic / type=cs ;
estimate "treatment" treatment 1 -1 /exp ;
run;&lt;BR /&gt;
* correlated data cannot be analysed with the events/trial syntax in proc genmod;
* the following is wrong;
proc genmod data=infection_grouped descending order=data;
class treatment clinic;
model x/n = treatment / d=bin link=logit;
repeated subject=clinic / type=cs ;
estimate "treatment" treatment 1 -1 /exp ;
run;&lt;BR /&gt;
* with proc glimmix;
proc glimmix data=infection_grouped;
class treatment clinic;
model x/n = treatment / solution;
random _residual_ / subject=clinic type=cs;
estimate "treatment" treatment 1 -1 /exp ;
run;&lt;BR /&gt;
proc glimmix data=infection_bin;
class treatment clinic;
model cure = treatment / solution;
random _residual_ / subject=clinic type=cs;
estimate "treatment" treatment 1 -1 /exp ;
run;&lt;BR /&gt;
proc glimmix data=infection_grouped;
class treatment clinic;
model x/n = treatment / solution;
random intercept / subject=clinic ;
estimate "treatment" treatment 1 -1 /exp ;
run;&lt;BR /&gt;
proc glimmix data=infection_bin;
class treatment clinic;
model cure = treatment / solution;
random intercept / subject=clinic ;
estimate "treatment" treatment 1 -1 /exp ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to clarify this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Veronique&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 11:44:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/use-of-events-trial-syntax-with-correlated-data/m-p/386955#M20151</guid>
      <dc:creator>vstorme</dc:creator>
      <dc:date>2017-08-10T11:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: use of events/trial syntax with correlated data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/use-of-events-trial-syntax-with-correlated-data/m-p/387170#M20160</link>
      <description>&lt;P&gt;Keep in mind that all observations with the same value of the SUBJECT= variable in GENMOD's REPEATED statement are considered correlated, and any two observations with different values are considered uncorrelated. Further, the event/trials syntax allows you to specify a set of independent trials. So, the two analyses are making very different assumptions about the data. With events/trials syntax,&amp;nbsp;the 36 trials in the clinic 1, trt 1 set are treated as independent as are the 37 trials in the clinic 1, trt 2 set, but any two trials in differing sets are treated as correlated. However, in the analysis without events trials syntax, all 36+37 trials in clinic 1 are treated as correlated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, because the working correlation in the events/trials analysis is extremely high, GENMOD is unable to converge. &amp;nbsp;If you use&amp;nbsp;type=fixed(1,.99,.99,1) instead of type=cs to limit the correlation, it can converge.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 19:36:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/use-of-events-trial-syntax-with-correlated-data/m-p/387170#M20160</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2017-08-10T19:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: use of events/trial syntax with correlated data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/use-of-events-trial-syntax-with-correlated-data/m-p/387259#M20171</link>
      <description>&lt;P&gt;Thank you Dave,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand now. I repeated the analysis with the multicenter data from&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glimmix_a0000001403.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glimmix_a0000001403.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;both with proc glimmix and proc genmod. Accidentally, the previous example did not turn out well because of the convergence problem with proc genmod, which problem I do not have with the multicenter data&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 08:35:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/use-of-events-trial-syntax-with-correlated-data/m-p/387259#M20171</guid>
      <dc:creator>vstorme</dc:creator>
      <dc:date>2017-08-11T08:35:07Z</dc:date>
    </item>
  </channel>
</rss>

