<?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 SAS Coding in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-Coding/m-p/683151#M24150</link>
    <description>&lt;P&gt;What are the respective codes would be to get these results given below?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 658px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49260i2E5CDA3E9CDD8AD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 583px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49261iB9E2A86CF0206F08/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2020 03:22:22 GMT</pubDate>
    <dc:creator>zahidhasandipu</dc:creator>
    <dc:date>2020-09-11T03:22:22Z</dc:date>
    <item>
      <title>SAS Coding</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Coding/m-p/683151#M24150</link>
      <description>&lt;P&gt;What are the respective codes would be to get these results given below?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 658px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49260i2E5CDA3E9CDD8AD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 583px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49261iB9E2A86CF0206F08/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 03:22:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Coding/m-p/683151#M24150</guid>
      <dc:creator>zahidhasandipu</dc:creator>
      <dc:date>2020-09-11T03:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Coding</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Coding/m-p/683156#M24151</link>
      <description>&lt;P&gt;This is a multivariate anova run under PROC GLM.&amp;nbsp; It uses the manova statement, which is documented in the &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_glm_syntax11.htm&amp;amp;locale=en" target="_self"&gt;MANOVA Statement&lt;/A&gt; section in the chapter on PROC GLM.&amp;nbsp; If you click on the "details" tab, you'll get a link to the &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_glm_details45.htm&amp;amp;locale=en" target="_self"&gt;Multivariate Analysis of Variance&lt;/A&gt; page which lists the statistics you show in your example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go to the Examples tab, and you can play with this SAS sample code for manova.&amp;nbsp; It's &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_glm_details45.htm&amp;amp;locale=en" target="_self"&gt;Example 50.6&lt;/A&gt; which I've copied below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "Romano-British Pottery";
data pottery;
   input Site $12. Al Fe Mg Ca Na;
   datalines;
Llanederyn   14.4 7.00 4.30 0.15 0.51
Llanederyn   13.8 7.08 3.43 0.12 0.17
Llanederyn   14.6 7.09 3.88 0.13 0.20
Llanederyn   11.5 6.37 5.64 0.16 0.14
Llanederyn   13.8 7.06 5.34 0.20 0.20
Llanederyn   10.9 6.26 3.47 0.17 0.22
Llanederyn   10.1 4.26 4.26 0.20 0.18
Llanederyn   11.6 5.78 5.91 0.18 0.16
Llanederyn   11.1 5.49 4.52 0.29 0.30
Llanederyn   13.4 6.92 7.23 0.28 0.20
Llanederyn   12.4 6.13 5.69 0.22 0.54
Llanederyn   13.1 6.64 5.51 0.31 0.24
Llanederyn   12.7 6.69 4.45 0.20 0.22
Llanederyn   12.5 6.44 3.94 0.22 0.23
Caldicot     11.8 5.44 3.94 0.30 0.04
Caldicot     11.6 5.39 3.77 0.29 0.06
IslandThorns 18.3 1.28 0.67 0.03 0.03
IslandThorns 15.8 2.39 0.63 0.01 0.04
IslandThorns 18.0 1.50 0.67 0.01 0.06
IslandThorns 18.0 1.88 0.68 0.01 0.04
IslandThorns 20.8 1.51 0.72 0.07 0.10
AshleyRails  17.7 1.12 0.56 0.06 0.06
AshleyRails  18.3 1.14 0.67 0.06 0.05
AshleyRails  16.7 0.92 0.53 0.01 0.05
AshleyRails  14.8 2.74 0.67 0.03 0.05
AshleyRails  19.1 1.64 0.60 0.10 0.03
;

proc glm data=pottery;
   class Site;
   model Al Fe Mg Ca Na = Site;
   contrast 'Llanederyn vs. the rest' Site 1 1 1 -3;
   manova h=_all_ / printe printh;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Sep 2020 03:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Coding/m-p/683156#M24151</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-09-11T03:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Coding</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Coding/m-p/683157#M24152</link>
      <description>&lt;P&gt;If I wanted to see if students’ math anxiety decreased from the beginning of class to the end. 386 students were tested in week 1 and 342 students in week 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I tell if there is a change in anxiety from time 1 to time 2?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 03:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Coding/m-p/683157#M24152</guid>
      <dc:creator>zahidhasandipu</dc:creator>
      <dc:date>2020-09-11T03:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Coding</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Coding/m-p/683159#M24153</link>
      <description>&lt;P&gt;What share of these students took both tests?&amp;nbsp; And do you know the id's of those students.&amp;nbsp;&amp;nbsp; If there are a large number of them, you shold calculate the week4-week1 differences for each of those students.&amp;nbsp; Then do an analog of this syntax with your sample data (using the pottery example data in my earlier post).&amp;nbsp; Only in this case, the dependent variables would be the test-score &lt;EM&gt;&lt;STRONG&gt;differences&lt;/STRONG&gt;&lt;/EM&gt;, not the scores themselves.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=pottery;
   model Al Fe Mg Ca Na = ;
   manova h=_all_ / printe printh;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I believe this produces a manova test against the null hypothesis of no multivariate change in the 5 outcome measures.&amp;nbsp; SAS labels it as&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;MANOVA Test Criteria and Exact F Statistics for the Hypothesis of &lt;EM&gt;&lt;STRONG&gt;No Overall Intercept Effect&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But if each of your students took only one test, then you can't do student-specific changes.&amp;nbsp; Instead, you would need a CLASS statement for the "week-of-test" (or whatever you name it) variable, and make that variable the predictor in the model statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All this presumes you have a multivariate measure of anxiety.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I guess if you have a substantial number of students who took both tests, and of students who took only one test, then you would have to run two manova's.&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>Fri, 11 Sep 2020 04:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Coding/m-p/683159#M24153</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-09-11T04:33:03Z</dc:date>
    </item>
  </channel>
</rss>

