<?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: ODS Output Anova in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/ODS-Output-Anova/m-p/401909#M3615</link>
    <description>&lt;P&gt;Create a format and apply it to your source data. The format should flow through the rest of the program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a quick intro on creating formats&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi30/001-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/001-30.pdf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Oct 2017 20:03:24 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-10-06T20:03:24Z</dc:date>
    <item>
      <title>ODS Output Anova</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ODS-Output-Anova/m-p/401900#M3614</link>
      <description>&lt;P&gt;Hey!&lt;BR /&gt;&lt;BR /&gt;I want to write a macro for ANOVAS that tests a number of dependent variables against one independent variable. My current version looks like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%MACRO anov(input_dataset= , independent_variable= , variable_list=, output_dataset= );&lt;BR /&gt;/* Check how man variables are in the list */
%LET M=%WORDS(&amp;amp;variable_list.);           
%DO i=1 %TO &amp;amp;M.;                                    
%LET var = %SCAN (&amp;amp;variable_list., &amp;amp;i.); 
PROC ANOVA DATA= &amp;amp;input_dataset.;
CLASS &amp;amp;independent_variable.;
MODEL &amp;amp;var. = &amp;amp;independent_variable.;
MEANS &amp;amp;independent_variable.;
ODS OUTPUT Summary=output1 (RENAME=(&amp;amp;var._Mean = Mean &amp;amp;var._STDDEV=STDDEV));
PROC MEANS DATA = &amp;amp;input_dataset. Mean STDDEV;
VAR &amp;amp;var.;
class &amp;amp;independent_variable.;
RUN;
ods output close;
ODS OUTPUT means=anova modelAnova=model2;         
PROC ANOVA DATA= &amp;amp;input_dataset.;
CLASS &amp;amp;independent_variable.;
MODEL &amp;amp;var. = &amp;amp;independent_variable.;
MEANS &amp;amp;independent_variable.;
RUN;
Quit;
ods output close;
%END;                          
%MEND anov;&lt;BR /&gt;&lt;BR /&gt;%anov (input_dataset=multiple_sclerosis, &lt;BR /&gt; independent_variable= ms_form,&lt;BR /&gt; variable_list=eq5d hp_general_health)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Unfortunately, I'm fairly new to SAS and struggling a bit here.&amp;nbsp;The variable ms_form can be 1, 2 or 3. I want my output to have the name of the variable in the first column (so eq5d for the first 3, then hp_general_health) followed by the group means, and the standard derivation, the f-statistics, and the p-value. Anybody knows what exactly I should do?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 20:47:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ODS-Output-Anova/m-p/401900#M3614</guid>
      <dc:creator>jm1996</dc:creator>
      <dc:date>2017-10-06T20:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output Anova</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ODS-Output-Anova/m-p/401909#M3615</link>
      <description>&lt;P&gt;Create a format and apply it to your source data. The format should flow through the rest of the program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a quick intro on creating formats&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi30/001-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/001-30.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 20:03:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ODS-Output-Anova/m-p/401909#M3615</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-06T20:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output Anova</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ODS-Output-Anova/m-p/401915#M3616</link>
      <description>&lt;P&gt;And format and comment your code. It's barely legible as posted.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 20:14:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ODS-Output-Anova/m-p/401915#M3616</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-06T20:14:24Z</dc:date>
    </item>
  </channel>
</rss>

