<?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 Proc means - nway and missing option in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-means-nway-and-missing-option/m-p/819090#M323333</link>
    <description>&lt;P&gt;Appreciate if any one of you help me understand the purpose of nway and missing option in proc means. My understanding is, it will delete the records if the values of class variable is missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc means data=stack nway noprint missing;
class SNAP_DATE loc loc_name bu ip_code matrl_typ  storage_loc material ;
output out=MB_SUMMARY(drop=_:) sum(UNRSTR_QTY_DOL UNRSTR_QTY_UL)=;
run;
 
&lt;/PRE&gt;</description>
    <pubDate>Mon, 20 Jun 2022 04:54:25 GMT</pubDate>
    <dc:creator>David_Billa</dc:creator>
    <dc:date>2022-06-20T04:54:25Z</dc:date>
    <item>
      <title>Proc means - nway and missing option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-means-nway-and-missing-option/m-p/819090#M323333</link>
      <description>&lt;P&gt;Appreciate if any one of you help me understand the purpose of nway and missing option in proc means. My understanding is, it will delete the records if the values of class variable is missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc means data=stack nway noprint missing;
class SNAP_DATE loc loc_name bu ip_code matrl_typ  storage_loc material ;
output out=MB_SUMMARY(drop=_:) sum(UNRSTR_QTY_DOL UNRSTR_QTY_UL)=;
run;
 
&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jun 2022 04:54:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-means-nway-and-missing-option/m-p/819090#M323333</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2022-06-20T04:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc means - nway and missing option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-means-nway-and-missing-option/m-p/819096#M323338</link>
      <description>&lt;P&gt;As always, Maxim 1: Read the Documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the documentation of the &lt;A href="https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.4/proc/n1qnc9bddfvhzqn105kqitnf29cp.htm#n10z5tfgi3j0h9n19pq7bbgn9tve" target="_blank" rel="noopener"&gt;PROC MEANS Statement&lt;/A&gt;:&lt;/P&gt;
&lt;H4 class="xisDoc-argument"&gt;NWAY&lt;/H4&gt;
&lt;DIV class="xisDoc-argumentDescription"&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;specifies that the output data set contain only statistics for the observations with the highest _TYPE_ and _WAY_ values. When you specify class variables, NWAY corresponds to the combination of all class variables.&lt;/P&gt;
&lt;SECTION class="xisDoc-tableWrap"&gt;
&lt;TABLE class="xisDoc-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="xisDoc-summaryInteraction"&gt;Interaction&lt;/TH&gt;
&lt;TD class="xisDoc-summaryText"&gt;If you specify a TYPES statement or a WAYS statement, then PROC MEANS ignores this option.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="xisDoc-summarySee" rowspan="2"&gt;See&lt;/TH&gt;
&lt;TD class="xisDoc-summaryText"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.4/proc/n026epq8bpz1f9n10oeb7zen7s1e.htm" target="_blank"&gt;Output Data Set&lt;/A&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="xisDoc-summaryText"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.4/proc/p1qko51z4vnlhan11xvjg4e5f20f.htm#p1qko51z4vnlhan11xvjg4e5f20f" target="_blank"&gt;Computing Output Statistics with Missing Class Variable Values&lt;/A&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which means that statistics for higher-up CLASS variables (in your example, (e.g.) the discrete values of SNAP_DATE) are not calculated, only those for the combination of all CLASS variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 class="xisDoc-argument"&gt;MISSING&lt;/H4&gt;
&lt;DIV class="xisDoc-argumentDescription"&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;considers missing values as valid values to create the combinations of class variables. Special missing values that represent numeric values (the letters A through Z and the underscore (_) character) are each considered as a separate value.&lt;/P&gt;
&lt;SECTION class="xisDoc-tableWrap"&gt;
&lt;TABLE class="xisDoc-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="xisDoc-summaryDefault"&gt;Default&lt;/TH&gt;
&lt;TD class="xisDoc-summaryText"&gt;If you omit MISSING, then PROC MEANS excludes the observations with a missing class variable value from the analysis.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="xisDoc-summarySee" rowspan="2"&gt;See&lt;/TH&gt;
&lt;TD class="xisDoc-summaryText"&gt;&lt;SPAN class="xisDoc-xrefBookTitle"&gt;SAS Language Reference: Concepts&lt;/SPAN&gt; for a discussion of missing values that have special meaning.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="xisDoc-summaryText"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.4/proc/n1eseaucwkzo18n1nph31op5kkdt.htm#n1eseaucwkzo18n1nph31op5kkdt" target="_blank"&gt;Using Preloaded Formats with Class Variables&lt;/A&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;self-explanatory&lt;/P&gt;
&lt;/SECTION&gt;
&lt;/DIV&gt;
&lt;/SECTION&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Jun 2022 06:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-means-nway-and-missing-option/m-p/819096#M323338</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-20T06:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc means - nway and missing option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-means-nway-and-missing-option/m-p/819100#M323339</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;Well, any thoughts to how to explain this code to R programmers in simple language?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 06:40:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-means-nway-and-missing-option/m-p/819100#M323339</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2022-06-20T06:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc means - nway and missing option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-means-nway-and-missing-option/m-p/819102#M323341</link>
      <description>&lt;P&gt;Create the statistics with one line or each combination of all CLASS variables; consider missing values in a CLASS variable as valid.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 06:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-means-nway-and-missing-option/m-p/819102#M323341</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-20T06:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc means - nway and missing option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-means-nway-and-missing-option/m-p/819115#M323349</link>
      <description>&lt;P&gt;You can try running PROC MEANS without these options (one at a time) and see the difference in the output. If that and the documentation still doesn't make sense, ask specific questions.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 10:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-means-nway-and-missing-option/m-p/819115#M323349</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-06-20T10:38:36Z</dc:date>
    </item>
  </channel>
</rss>

