<?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: The best test in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/The-best-test/m-p/549128#M27405</link>
    <description>&lt;P&gt;From your description, I'm guessing that you have subjects that are randomly assigned to the treatments and then are observed over time so that you do not have independent observations across the days. If correct, you could consider various longitudinal approaches including a random effects model (in PROC GLIMMIX), a Generalized Estimating Equations (GEE) model (in PROC GEE or GENMOD), or a stratified conditional logistic model (in PROC LOGISTIC). For example, a GEE model could be fit with code like the following which models the probability that REACTIVITY=1 and allows for the effect of treatment to vary by day. The SLICE statement provides tests of the treatment effect in each day.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gee;
  class subjID treatment day;
  model reactivity(event="1") = treatment day treatment*day / dist=bin;
  repeated subject=subjID;
  slice treatment*day / sliceby=day;
  run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 07 Apr 2019 20:38:40 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2019-04-07T20:38:40Z</dc:date>
    <item>
      <title>The best test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-best-test/m-p/548782#M27401</link>
      <description>&lt;P&gt;Hello there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know&amp;nbsp;which test is better to use in my data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am testing two treatments (trained and not trained). And after I collected the behaviour and scored it in 0 (absence of reactivity) and 1 (presence of reactivity). The data were collected in days of lactation (1, 3, 5, 7 and 9 ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So... I&amp;nbsp; would like to compare between treatments by day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Day of lactation&amp;nbsp; ---&amp;gt;&amp;nbsp; Percentage of reactivity by group&amp;nbsp; ---&amp;gt; Significance&lt;/P&gt;&lt;P&gt;Day 1&amp;nbsp; &amp;nbsp;---&amp;gt;&amp;nbsp; 30% (trained group)&amp;nbsp; 80% (not trained group) ---&amp;gt; P value&lt;/P&gt;&lt;P&gt;Day 3&amp;nbsp; &amp;nbsp;---&amp;gt;&amp;nbsp; 20% (trained group)&amp;nbsp; 60% (not trained group) ---&amp;gt; P value&lt;/P&gt;&lt;P&gt;Day 5&amp;nbsp; &amp;nbsp;---&amp;gt;&amp;nbsp; 10% (trained group)&amp;nbsp; 45% (not trained group) ---&amp;gt; P value&lt;/P&gt;&lt;P&gt;Day 7&amp;nbsp; &amp;nbsp;---&amp;gt;&amp;nbsp; 0% (trained group)&amp;nbsp; 30% (not trained group) ---&amp;gt; P value&lt;/P&gt;&lt;P&gt;Day 9&amp;nbsp; &amp;nbsp;---&amp;gt;&amp;nbsp; 0% (trained group)&amp;nbsp; 20% (not trained group) ---&amp;gt; P value&lt;/P&gt;&lt;P&gt;Mean&amp;nbsp; &amp;nbsp;---&amp;gt;&amp;nbsp; 12% (trained group)&amp;nbsp; 47% (not trained group) ---&amp;gt; P value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 14:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-best-test/m-p/548782#M27401</guid>
      <dc:creator>aska_ujita</dc:creator>
      <dc:date>2019-04-05T14:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: The best test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-best-test/m-p/549128#M27405</link>
      <description>&lt;P&gt;From your description, I'm guessing that you have subjects that are randomly assigned to the treatments and then are observed over time so that you do not have independent observations across the days. If correct, you could consider various longitudinal approaches including a random effects model (in PROC GLIMMIX), a Generalized Estimating Equations (GEE) model (in PROC GEE or GENMOD), or a stratified conditional logistic model (in PROC LOGISTIC). For example, a GEE model could be fit with code like the following which models the probability that REACTIVITY=1 and allows for the effect of treatment to vary by day. The SLICE statement provides tests of the treatment effect in each day.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gee;
  class subjID treatment day;
  model reactivity(event="1") = treatment day treatment*day / dist=bin;
  repeated subject=subjID;
  slice treatment*day / sliceby=day;
  run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 07 Apr 2019 20:38:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-best-test/m-p/549128#M27405</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-04-07T20:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: The best test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-best-test/m-p/549918#M27441</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;StatDave_sas!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thank you for your reply!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I tried your example, but I got errors because the final hessian.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;My proc structure is this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;proc glimmix data=A;&lt;BR /&gt;class treatment day;&lt;BR /&gt;model reactivity=treatment day treatment*day / dist=binomial DDFM=KR;&lt;BR /&gt;random subject subjectID;&lt;BR /&gt;lsmeans treatment/ adjust=tukey lines;&lt;BR /&gt;by day;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Is that correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thank you very mych.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Aska.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 11:35:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-best-test/m-p/549918#M27441</guid>
      <dc:creator>aska_ujita</dc:creator>
      <dc:date>2019-04-10T11:35:32Z</dc:date>
    </item>
  </channel>
</rss>

