<?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 How to output the Statistics portion of PROC NPAR1WAY through ODS? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-output-the-Statistics-portion-of-PROC-NPAR1WAY-through/m-p/8416#M2847</link>
    <description>I am trying to use wilcoxon rank-sum test to test median wage by foreign-born/native-born status for selected occupations. My goal is to produce a summary output. &lt;BR /&gt;
&lt;BR /&gt;
Are there ways to output the statistics portion of proc NPAR1WAY through ODS, like how one can do in ttest?&lt;BR /&gt;
&lt;BR /&gt;
PROC&lt;BR /&gt;
NPAR1WAY Data=Hospy200507 WILCOXON; &lt;BR /&gt;
CLASS&lt;BR /&gt;
CITI; &lt;BR /&gt;
VAR&lt;BR /&gt;
INCWAGE_adj; &lt;BR /&gt;
by&lt;BR /&gt;
occ1990; &lt;BR /&gt;
RUN&lt;BR /&gt;
;</description>
    <pubDate>Tue, 27 Oct 2009 21:52:16 GMT</pubDate>
    <dc:creator>wilcoxon</dc:creator>
    <dc:date>2009-10-27T21:52:16Z</dc:date>
    <item>
      <title>How to output the Statistics portion of PROC NPAR1WAY through ODS?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-output-the-Statistics-portion-of-PROC-NPAR1WAY-through/m-p/8416#M2847</link>
      <description>I am trying to use wilcoxon rank-sum test to test median wage by foreign-born/native-born status for selected occupations. My goal is to produce a summary output. &lt;BR /&gt;
&lt;BR /&gt;
Are there ways to output the statistics portion of proc NPAR1WAY through ODS, like how one can do in ttest?&lt;BR /&gt;
&lt;BR /&gt;
PROC&lt;BR /&gt;
NPAR1WAY Data=Hospy200507 WILCOXON; &lt;BR /&gt;
CLASS&lt;BR /&gt;
CITI; &lt;BR /&gt;
VAR&lt;BR /&gt;
INCWAGE_adj; &lt;BR /&gt;
by&lt;BR /&gt;
occ1990; &lt;BR /&gt;
RUN&lt;BR /&gt;
;</description>
      <pubDate>Tue, 27 Oct 2009 21:52:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-output-the-Statistics-portion-of-PROC-NPAR1WAY-through/m-p/8416#M2847</guid>
      <dc:creator>wilcoxon</dc:creator>
      <dc:date>2009-10-27T21:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to output the Statistics portion of PROC NPAR1WAY through ODS?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-output-the-Statistics-portion-of-PROC-NPAR1WAY-through/m-p/8417#M2848</link>
      <description>Hi:&lt;BR /&gt;
  If you do this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ODS TRACE ON/LABEL;&lt;BR /&gt;
PROC NPAR1WAY Data=Hospy200507 WILCOXON; &lt;BR /&gt;
  CLASS CITI; &lt;BR /&gt;
  VAR INCWAGE_adj; &lt;BR /&gt;
  by occ1990; &lt;BR /&gt;
RUN; &lt;BR /&gt;
ODS TRACE OFF;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
...and then look in the SAS log, you will see the names of the output objects that are being created by your procedure. For example, NPAR1WAY would have something like this in the LOG:&lt;BR /&gt;
[pre]&lt;BR /&gt;
**** Note that some of the Log output was deleted here to make the&lt;BR /&gt;
      posting smaller ****&lt;BR /&gt;
Output Added:&lt;BR /&gt;
-------------&lt;BR /&gt;
Name:       WilcoxonScores&lt;BR /&gt;
Label:      Scores&lt;BR /&gt;
Template:   Stat.Npar1way.ClassScores&lt;BR /&gt;
Path:       Npar1way.ByGroup1.INCWAGE_adj.Wilcoxon.WilcoxonScores&lt;BR /&gt;
-------------&lt;BR /&gt;
&lt;BR /&gt;
Output Added:&lt;BR /&gt;
-------------&lt;BR /&gt;
Name:       WilcoxonTest&lt;BR /&gt;
Label:      Two-Sample Test&lt;BR /&gt;
Template:   Stat.Npar1way.StatFactoid&lt;BR /&gt;
Path:       Npar1way.ByGroup1.INCWAGE_adj.Wilcoxon.WilcoxonTest&lt;BR /&gt;
-------------&lt;BR /&gt;
&lt;BR /&gt;
Output Added:&lt;BR /&gt;
-------------&lt;BR /&gt;
Name:       KruskalWallisTest&lt;BR /&gt;
Label:      Kruskal-Wallis Test&lt;BR /&gt;
Template:   Stat.Npar1way.StatFactoid&lt;BR /&gt;
Path:       Npar1way.ByGroup1.INCWAGE_adj.Wilcoxon.KruskalWallisTest&lt;BR /&gt;
-------------&lt;BR /&gt;
**** end of by group 1&lt;BR /&gt;
&lt;BR /&gt;
Output Added:&lt;BR /&gt;
-------------&lt;BR /&gt;
Name:       WilcoxonScores&lt;BR /&gt;
Label:      Scores&lt;BR /&gt;
Template:   Stat.Npar1way.ClassScores&lt;BR /&gt;
Path:       Npar1way.ByGroup2.INCWAGE_adj.Wilcoxon.WilcoxonScores&lt;BR /&gt;
-------------&lt;BR /&gt;
&lt;BR /&gt;
Output Added:&lt;BR /&gt;
-------------&lt;BR /&gt;
Name:       WilcoxonTest&lt;BR /&gt;
Label:      Two-Sample Test&lt;BR /&gt;
Template:   Stat.Npar1way.StatFactoid&lt;BR /&gt;
Path:       Npar1way.ByGroup2.INCWAGE_adj.Wilcoxon.WilcoxonTest&lt;BR /&gt;
-------------&lt;BR /&gt;
&lt;BR /&gt;
Output Added:&lt;BR /&gt;
-------------&lt;BR /&gt;
Name:       KruskalWallisTest&lt;BR /&gt;
Label:      Kruskal-Wallis Test&lt;BR /&gt;
Template:   Stat.Npar1way.StatFactoid&lt;BR /&gt;
Path:       Npar1way.ByGroup2.INCWAGE_adj.Wilcoxon.KruskalWallisTest&lt;BR /&gt;
-------------&lt;BR /&gt;
**** end of by group 2&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Then you have to decide whether you 1) want a particular statistic or set of statistics in a particular destination result file (such as only get K-W Test in ODS HTML, but none of the other output objects) OR 2)  whether you want to create SAS datasets from the OUTPUT objects.&lt;BR /&gt;
 &lt;BR /&gt;
For #1, you'd use ODS SELECT to select certain output objects for certain destinations. For #2, you'd use ODS OUTPUT to create output datasets from certain output objects.&lt;BR /&gt;
 &lt;BR /&gt;
For more information, see these papers and notes:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001806839.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001806839.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/forum2008/172-2008.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2008/172-2008.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi26/p058-26.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi26/p058-26.pdf&lt;/A&gt; (pg 2 and 3)&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/25/390.html" target="_blank"&gt;http://support.sas.com/kb/25/390.html&lt;/A&gt; (ODS OUTPUT)&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 27 Oct 2009 23:32:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-output-the-Statistics-portion-of-PROC-NPAR1WAY-through/m-p/8417#M2848</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-10-27T23:32:32Z</dc:date>
    </item>
  </channel>
</rss>

