<?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: Different N obs between proc means and proc npar1way in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Different-N-obs-between-proc-means-and-proc-npar1way/m-p/431400#M106711</link>
    <description>&lt;P&gt;You can add 'nmiss' to your PROC MEANS statement to try to examine missingness of the continuous variables at the class level.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, have you tried running a PROC FREQ to examine the categorical variables and their frequencies. That might help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Such as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC FREQ DATA=X;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TABLES SUB;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TABLES GROUP;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TABLES SUB*GROUP;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2018 18:56:36 GMT</pubDate>
    <dc:creator>svh</dc:creator>
    <dc:date>2018-01-26T18:56:36Z</dc:date>
    <item>
      <title>Different N obs between proc means and proc npar1way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Different-N-obs-between-proc-means-and-proc-npar1way/m-p/431387#M106705</link>
      <description>&lt;P&gt;I am running a 2 sample wilcoxon and also supplementing my p-value with with medians using proc means. However, the number of obs in each are different: proc means reports I have 3 in my class variable whereas npar1way reports I have 2. What can be the reason for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc means data=x median;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;where group = "A";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;class sub;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var change;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc npar1way data=x wilcoxon;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;where group = "A";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;class sub;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var change;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;exact;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 18:19:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Different-N-obs-between-proc-means-and-proc-npar1way/m-p/431387#M106705</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2018-01-26T18:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Different N obs between proc means and proc npar1way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Different-N-obs-between-proc-means-and-proc-npar1way/m-p/431400#M106711</link>
      <description>&lt;P&gt;You can add 'nmiss' to your PROC MEANS statement to try to examine missingness of the continuous variables at the class level.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, have you tried running a PROC FREQ to examine the categorical variables and their frequencies. That might help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Such as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC FREQ DATA=X;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TABLES SUB;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TABLES GROUP;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TABLES SUB*GROUP;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 18:56:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Different-N-obs-between-proc-means-and-proc-npar1way/m-p/431400#M106711</guid>
      <dc:creator>svh</dc:creator>
      <dc:date>2018-01-26T18:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Different N obs between proc means and proc npar1way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Different-N-obs-between-proc-means-and-proc-npar1way/m-p/431407#M106715</link>
      <description>&lt;P&gt;In PROC MEANS, "NObs" is the total number of observations in each group. It includes missing and nonmissing. To see the number of observations that are used in the analysis, put N and NMISS on the PROC MEANS statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=x N NMISS median ;
    where group = "A";
    class sub;
    var change;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The "N" column should match the "N" column in NPAR1WAy.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 19:05:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Different-N-obs-between-proc-means-and-proc-npar1way/m-p/431407#M106715</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-01-26T19:05:25Z</dc:date>
    </item>
  </channel>
</rss>

