<?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 in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855658#M37709</link>
    <description>&lt;P&gt;PROC ANOVA would be a good guess.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.stat.purdue.edu/~tqin/system101/method/method_two_way_ANOVA_sas.htm" target="_blank"&gt;https://www.stat.purdue.edu/~tqin/system101/method/method_two_way_ANOVA_sas.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2023 22:03:17 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2023-01-25T22:03:17Z</dc:date>
    <item>
      <title>two way ANOVA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855633#M37701</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;My data contains milk production parameters as the variables are: Milk, Fat, and Protein in the row of the excel file and the breed of the animal (1, 2) and the month (1,2,3,4 ) in the column.&lt;/P&gt;
&lt;P&gt;so, for each month and each breed, we have the milk production parameters (milk, fat, and protein).&lt;/P&gt;
&lt;P&gt;I want to see the effect of breed, month, and their interaction on these parameters (milk, fat, and protein).&lt;/P&gt;
&lt;P&gt;I wonder about the glm procedure:&lt;/P&gt;
&lt;P&gt;proc glm ;&lt;/P&gt;
&lt;P&gt;model Milk Fat Protein= breed month breed * month ;&lt;/P&gt;
&lt;P&gt;but I was asked to do the two-way ANOVA analysis and I wrote this code:&lt;/P&gt;
&lt;P&gt;proc univariate data=milk ;&lt;BR /&gt;var Milk Fat Protein ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;Is the code for the two-way ANOVA correct to see the effect of the breed the month and their interaction?&lt;/P&gt;
&lt;P&gt;What is the difference between the proc glm and univariate if they can do the same test?&lt;/P&gt;
&lt;P&gt;Thank you! and I am sorry for my lack of knowledge.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 19:44:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855633#M37701</guid>
      <dc:creator>always-good</dc:creator>
      <dc:date>2023-01-25T19:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: two way ANOVA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855646#M37704</link>
      <description>&lt;P&gt;I don't see anything that Proc Univariate code doing any ANOVA. It gives summary statistics of three variables and does not use the Breed or Month at all. So I don't quite understand why you are asking about comparison between Univariate and GLM at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437029"&gt;@always-good&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;My data contains milk production parameters as the variables are: Milk, Fat, and Protein in the row of the excel file and the breed of the animal (1, 2) and the month (1,2,3,4 ) in the column.&lt;/P&gt;
&lt;P&gt;so, for each month and each breed, we have the milk production parameters (milk, fat, and protein).&lt;/P&gt;
&lt;P&gt;I want to see the effect of breed, month, and their interaction on these parameters (milk, fat, and protein).&lt;/P&gt;
&lt;P&gt;I wonder about the glm procedure:&lt;/P&gt;
&lt;P&gt;proc glm ;&lt;/P&gt;
&lt;P&gt;model Milk Fat Protein= breed month breed * month ;&lt;/P&gt;
&lt;P&gt;but I was asked to do the two-way ANOVA analysis and I wrote this code:&lt;/P&gt;
&lt;P&gt;proc univariate data=milk ;&lt;BR /&gt;var Milk Fat Protein ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;Is the code for the two-way ANOVA correct to see the effect of the breed the month and their interaction?&lt;/P&gt;
&lt;P&gt;What is the difference between the proc glm and univariate if they can do the same test?&lt;/P&gt;
&lt;P&gt;Thank you! and I am sorry for my lack of knowledge.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 20:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855646#M37704</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-01-25T20:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: two way ANOVA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855649#M37705</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm ;
    model Milk Fat Protein= breed month breed * month ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This looks like a two-way ANOVA to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, from now on &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437029"&gt;@always-good&lt;/a&gt;, please use a code box to include actual code in your message. The above code box is created by clicking on the "little running man" icon and pasting your code into the window that appears.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 20:36:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855649#M37705</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-25T20:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: two way ANOVA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855656#M37707</link>
      <description>Ok I will use the code box.&lt;BR /&gt;Thank you!</description>
      <pubDate>Wed, 25 Jan 2023 21:39:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855656#M37707</guid>
      <dc:creator>always-good</dc:creator>
      <dc:date>2023-01-25T21:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: two way ANOVA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855657#M37708</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; Thank you for your reply.&lt;BR /&gt;In fact, I think that  I'm not writing the right code when the proc univariate is used to do Two-way ANOVA because I did not mention the breed and month. That's why I was asking. so please, what is the right code for the two-way ANOVA analysis without talking about glm procedure if it is not the proc univariate?</description>
      <pubDate>Wed, 25 Jan 2023 21:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855657#M37708</guid>
      <dc:creator>always-good</dc:creator>
      <dc:date>2023-01-25T21:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: two way ANOVA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855658#M37709</link>
      <description>&lt;P&gt;PROC ANOVA would be a good guess.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.stat.purdue.edu/~tqin/system101/method/method_two_way_ANOVA_sas.htm" target="_blank"&gt;https://www.stat.purdue.edu/~tqin/system101/method/method_two_way_ANOVA_sas.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 22:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855658#M37709</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-01-25T22:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: two way ANOVA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855660#M37710</link>
      <description>Thank you!&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jan 2023 22:02:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855660#M37710</guid>
      <dc:creator>always-good</dc:creator>
      <dc:date>2023-01-25T22:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: two way ANOVA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855719#M37719</link>
      <description>&lt;P&gt;Do not use PROC ANOVA for two-way ANOVA unless the cell sizes are all equal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_anova_overview.htm" target="_self"&gt;documentation for PROC ANOVA&lt;/A&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ANOVA procedure is designed to handle balanced data &lt;A id="statug.anova.a0000000007" class="indexterm" target="_blank"&gt;&lt;/A&gt; &lt;A id="statug.anova.a000000000701" class="indexterm" target="_blank"&gt;&lt;/A&gt; (that is, data with equal numbers of observations for every combination of the classification factors)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 26 Jan 2023 11:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/two-way-ANOVA/m-p/855719#M37719</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-26T11:50:19Z</dc:date>
    </item>
  </channel>
</rss>

