<?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: Two Way Anova or Scheirer-Ray-Hare in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853220#M42217</link>
    <description>Yes I have seen it, however a Friedmans test is only possible with 1 predictor variable, so i tried the proc glimmix procedure.&lt;BR /&gt;However, I always reveive the same error in my log ' Invalid or missing data.'&lt;BR /&gt;This was the code that I used:&lt;BR /&gt;proc glimmix data=ild.all;&lt;BR /&gt;class intervention visit;&lt;BR /&gt;model mean_steps =intervention visit intervention*visit/dist = bin;&lt;BR /&gt;random intercept / subject=study_id;&lt;BR /&gt;run;&lt;BR /&gt;With 2 intervention classes, 2 visit classes, continuous dependent variable (mean_steps).&lt;BR /&gt;&lt;BR /&gt;Is my code not correct or what are the reasons for this error?&lt;BR /&gt;I found this as well, unfortunately it did not help solving my problem: &lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-non-parametric-equivalent-of-a-two-way-ANOVA-how-to/td-p/817637" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-non-parametric-equivalent-of-a-two-way-ANOVA-how-to/td-p/817637&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;Sofie&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 11 Jan 2023 11:16:08 GMT</pubDate>
    <dc:creator>Sofie3</dc:creator>
    <dc:date>2023-01-11T11:16:08Z</dc:date>
    <item>
      <title>Two Way Anova or Scheirer-Ray-Hare</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853207#M42215</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for help deciding which statistical procedure I should use to analyse the following data:&lt;/P&gt;&lt;P&gt;Independent variables:&lt;/P&gt;&lt;P&gt;- GROUP: control &amp;amp; intervention&lt;/P&gt;&lt;P&gt;- TIME: baseline &amp;amp; end&lt;/P&gt;&lt;P&gt;Dependent variable DV is continuous, with Shapiro Wilk &amp;lt;0.0001.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to this latest test, I think I should use a nonparametric test of a two way anova, thinking about Scheirer-Ray-Hare.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However&lt;/P&gt;&lt;P&gt;1) Is this test possible in SAS? And if so, can someone help me with the code and interpretation?&lt;/P&gt;&lt;P&gt;2) Or do I interpret the Shapiro Wilk test wrong and can I continue using the two way anova?&lt;/P&gt;&lt;P&gt;3) I also want to add a covariate in my analysis. However I don't know if this is possible in the suggested test (anova or Scheirer or another test I'm not thinking about).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 08:44:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853207#M42215</guid>
      <dc:creator>Sofie3</dc:creator>
      <dc:date>2023-01-11T08:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Two Way Anova or Scheirer-Ray-Hare</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853217#M42216</link>
      <description>Have you seen this post &lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-non-parametric-equivalent-of-a-two-way-ANOVA-how-to/td-p/817637" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-non-parametric-equivalent-of-a-two-way-ANOVA-how-to/td-p/817637&lt;/A&gt;? Does that seem relevant for your case?&lt;BR /&gt;&lt;BR /&gt;Best regards, Jos</description>
      <pubDate>Wed, 11 Jan 2023 10:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853217#M42216</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2023-01-11T10:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Two Way Anova or Scheirer-Ray-Hare</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853220#M42217</link>
      <description>Yes I have seen it, however a Friedmans test is only possible with 1 predictor variable, so i tried the proc glimmix procedure.&lt;BR /&gt;However, I always reveive the same error in my log ' Invalid or missing data.'&lt;BR /&gt;This was the code that I used:&lt;BR /&gt;proc glimmix data=ild.all;&lt;BR /&gt;class intervention visit;&lt;BR /&gt;model mean_steps =intervention visit intervention*visit/dist = bin;&lt;BR /&gt;random intercept / subject=study_id;&lt;BR /&gt;run;&lt;BR /&gt;With 2 intervention classes, 2 visit classes, continuous dependent variable (mean_steps).&lt;BR /&gt;&lt;BR /&gt;Is my code not correct or what are the reasons for this error?&lt;BR /&gt;I found this as well, unfortunately it did not help solving my problem: &lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-non-parametric-equivalent-of-a-two-way-ANOVA-how-to/td-p/817637" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-non-parametric-equivalent-of-a-two-way-ANOVA-how-to/td-p/817637&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;Sofie&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jan 2023 11:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853220#M42217</guid>
      <dc:creator>Sofie3</dc:creator>
      <dc:date>2023-01-11T11:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Two Way Anova or Scheirer-Ray-Hare</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853221#M42218</link>
      <description>&lt;P&gt;ANOVA does &lt;A href="https://blogs.sas.com/content/iml/2018/08/27/on-the-assumptions-and-misconceptions-of-linear-regression.html" target="_self"&gt;not require normally distributed response variable&lt;/A&gt;. It requires normally distributed errors, which you can check by fitting the model and seeing if the residuals are normally distributed.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 11:24:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853221#M42218</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-11T11:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Two Way Anova or Scheirer-Ray-Hare</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853225#M42219</link>
      <description>Since you have TIME variable,I think it is a repeated measured experiment, you should use mixed modle by PROC GLIMMIX or MIXED .</description>
      <pubDate>Wed, 11 Jan 2023 11:39:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853225#M42219</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-01-11T11:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Two Way Anova or Scheirer-Ray-Hare</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853232#M42221</link>
      <description>Thank you PaigeMiller for the correction of my misconception.&lt;BR /&gt;I would like to fit the model, however with 2 independent categorical variables, it seems difficult to do?&lt;BR /&gt;If possible, I would like to hear how I can do it.&lt;BR /&gt;Thank you for your help.</description>
      <pubDate>Wed, 11 Jan 2023 11:58:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853232#M42221</guid>
      <dc:creator>Sofie3</dc:creator>
      <dc:date>2023-01-11T11:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Two Way Anova or Scheirer-Ray-Hare</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853233#M42222</link>
      <description>I'm planning to use proc mixed, but I think the same assumption for normality has to be fulfilled as in a normal ANOVA.</description>
      <pubDate>Wed, 11 Jan 2023 11:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853233#M42222</guid>
      <dc:creator>Sofie3</dc:creator>
      <dc:date>2023-01-11T11:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Two Way Anova or Scheirer-Ray-Hare</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853234#M42223</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/335818"&gt;@Sofie3&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you PaigeMiller for the correction of my misconception.&lt;BR /&gt;I would like to fit the model, however with 2 independent categorical variables, it seems difficult to do?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Should not be difficult. All SAS modeling programs allow two independent categorical variables. You have already provided code that works.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 12:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853234#M42223</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-11T12:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Two Way Anova or Scheirer-Ray-Hare</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853236#M42224</link>
      <description>Then you could try other distribution, like: GAMMA</description>
      <pubDate>Wed, 11 Jan 2023 12:10:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853236#M42224</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-01-11T12:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Two Way Anova or Scheirer-Ray-Hare</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853239#M42225</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp; I used this code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods graphics on;&lt;BR /&gt;proc reg data = ild.all; *p-waarde sign = niet lineair;&lt;BR /&gt;model mean_steps = intervention;&lt;BR /&gt;plot mean_steps*intervention;&lt;BR /&gt;plot r. *p.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seeing the following output:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sofie3_0-1673439692652.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79270i6584E0895574A797/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sofie3_0-1673439692652.png" alt="Sofie3_0-1673439692652.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For me, it unclear if the errors are normally distributed or not. R² = 0.0278, meaning that they are not?&lt;/P&gt;&lt;P&gt;And if so, then I have to look for another analytical test?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 12:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853239#M42225</guid>
      <dc:creator>Sofie3</dc:creator>
      <dc:date>2023-01-11T12:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Two Way Anova or Scheirer-Ray-Hare</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853247#M42226</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;posted (and citing Rick's excellent blog post), the normality condition is on the residuals, not the dependent variable. You can run MIXED and check the plot of your residuals to see if they appear normal "enough" to you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 13:50:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853247#M42226</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2023-01-11T13:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Two Way Anova or Scheirer-Ray-Hare</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853257#M42227</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/92458"&gt;@StatsMan&lt;/a&gt;!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seeing this output, i would suggest that the residuals are 'normal', right? (I looked at the right upper graph)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sofie3_0-1673446644858.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79271i8DC3D2D6C9B7A2C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sofie3_0-1673446644858.png" alt="Sofie3_0-1673446644858.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 14:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853257#M42227</guid>
      <dc:creator>Sofie3</dc:creator>
      <dc:date>2023-01-11T14:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Two Way Anova or Scheirer-Ray-Hare</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853282#M42228</link>
      <description>&lt;P&gt;Not the residuals from some regression. You need the residuals from your PROC GLIMMIX with two categorical variables. You plot the distribution of the residuals, not the residuals against one of the x-variables.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 15:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853282#M42228</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-11T15:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Two Way Anova or Scheirer-Ray-Hare</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853995#M42257</link>
      <description>&lt;P&gt;There is a bit of a right tail, as shown in the histogram and at the upper right part of the QQ plot, but definitely not enough to make the assumption of normality of the residuals untrue. One thing I do see is that it looks like one of your model factors has three levels, rather than the two you mentioned in the original post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So here is a way to analyze this using time as a repeated factor at the residual level, using PROC GLIMMIX:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=ild.all;
class intervention visit study_id;
model mean_steps =intervention visit intervention*visit;
random visit /residual type=un subject=study_id;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Adding a covariate is then easy to do by adding the variable to the MODEL statement. If the covariate is categorical, you will also need to add it to the CLASS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 15:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-Way-Anova-or-Scheirer-Ray-Hare/m-p/853995#M42257</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-01-16T15:37:13Z</dc:date>
    </item>
  </channel>
</rss>

