<?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: proc tabulate in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate/m-p/33107#M8011</link>
    <description>Are you asking how to get proc tabulate to compute means based only on the non-missing values?  &lt;BR /&gt;
&lt;BR /&gt;
data example;&lt;BR /&gt;
   infile datalines;&lt;BR /&gt;
   input a1-a6;&lt;BR /&gt;
datalines;&lt;BR /&gt;
1 . . 1 1 1&lt;BR /&gt;
1 1 0 0 1 1&lt;BR /&gt;
. 0 1 1 . 1&lt;BR /&gt;
. 0 1 . 1 1&lt;BR /&gt;
. . 1 . 1 1&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
proc tabulate;&lt;BR /&gt;
var a1 a2 a3 a4 a5 a6;&lt;BR /&gt;
table (sum mean n nmiss), a1 a2 a3 a4 a5 a6;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
This seems to calculate means based on only the non-missing values.  Or did you mean something else?</description>
    <pubDate>Mon, 28 Jul 2008 19:25:45 GMT</pubDate>
    <dc:creator>mftuchman</dc:creator>
    <dc:date>2008-07-28T19:25:45Z</dc:date>
    <item>
      <title>proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate/m-p/33106#M8010</link>
      <description>Say you want to make a table of a bunch of variables in proc tabulate.  The variables have different numbers of missing values for each variable.  It seems like proc tabulate will only include records which have nonmissing values for ALL the variables.  Or if you use the 'missing' option, it will include all values for all variables, including missing values (which I don't want displayed).  Does anyone know of a way to display ONLY the nonmissing values for each variable?  In other words, the n for each variable may vary from variable to variable.&lt;BR /&gt;
Thanks.</description>
      <pubDate>Mon, 21 Jul 2008 22:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate/m-p/33106#M8010</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-07-21T22:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate/m-p/33107#M8011</link>
      <description>Are you asking how to get proc tabulate to compute means based only on the non-missing values?  &lt;BR /&gt;
&lt;BR /&gt;
data example;&lt;BR /&gt;
   infile datalines;&lt;BR /&gt;
   input a1-a6;&lt;BR /&gt;
datalines;&lt;BR /&gt;
1 . . 1 1 1&lt;BR /&gt;
1 1 0 0 1 1&lt;BR /&gt;
. 0 1 1 . 1&lt;BR /&gt;
. 0 1 . 1 1&lt;BR /&gt;
. . 1 . 1 1&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
proc tabulate;&lt;BR /&gt;
var a1 a2 a3 a4 a5 a6;&lt;BR /&gt;
table (sum mean n nmiss), a1 a2 a3 a4 a5 a6;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
This seems to calculate means based on only the non-missing values.  Or did you mean something else?</description>
      <pubDate>Mon, 28 Jul 2008 19:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate/m-p/33107#M8011</guid>
      <dc:creator>mftuchman</dc:creator>
      <dc:date>2008-07-28T19:25:45Z</dc:date>
    </item>
  </channel>
</rss>

