<?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 Are numeric missing values... in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610809#M177936</link>
    <description>&lt;P&gt;naturally treated as 0's?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Dec 2019 19:39:58 GMT</pubDate>
    <dc:creator>edasdfasdfasdfa</dc:creator>
    <dc:date>2019-12-10T19:39:58Z</dc:date>
    <item>
      <title>Are numeric missing values...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610809#M177936</link>
      <description>&lt;P&gt;naturally treated as 0's?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 19:39:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610809#M177936</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-12-10T19:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Are numeric missing values...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610810#M177937</link>
      <description>&lt;P&gt;No. Missing values are treated as less than any number you think of in SAS. Including zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 19:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610810#M177937</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-12-10T19:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Are numeric missing values...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610812#M177938</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201537"&gt;@edasdfasdfasdfa&lt;/a&gt;&amp;nbsp; For all I know,0 isn't missing. Missing values are valid values that does not have a value in other words a blank value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using &lt;EM&gt;operator&lt;/EM&gt;(arithmetic) propagates missing values while &lt;EM&gt;functions&lt;/EM&gt; ignore missing values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 19:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610812#M177938</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-12-10T19:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Are numeric missing values...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610813#M177939</link>
      <description>haha. thanks for the laugh!</description>
      <pubDate>Tue, 10 Dec 2019 19:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610813#M177939</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-12-10T19:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Are numeric missing values...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610815#M177940</link>
      <description>Thanks, Novinorsin.&lt;BR /&gt;No doubt that missing values might be valuable and are not the same as 0's..but how we would go about setting numeric missing to zero? I was wondering if this was the default behavior?</description>
      <pubDate>Tue, 10 Dec 2019 19:48:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610815#M177940</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-12-10T19:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Are numeric missing values...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610816#M177941</link>
      <description>&lt;P&gt;"I was wondering if this was the default behavior?"-- No default is just plain missing as-is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;STRONG&gt;but how we would go about setting numeric missing to zero?"&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mean this?&amp;nbsp;&amp;nbsp;&lt;CODE class=" language-sas"&gt;options missing=0;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
options missing=0;

data w;
k=.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201537"&gt;@edasdfasdfasdfa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks, Novinorsin.&lt;BR /&gt;No doubt that missing values might be valuable and are not the same as 0's.&lt;STRONG&gt;.but how we would go about setting numeric missing to zero?&lt;/STRONG&gt; I was wondering if this was the default behavior?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 19:51:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610816#M177941</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-12-10T19:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Are numeric missing values...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610817#M177942</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Using&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;operator&lt;/EM&gt;&lt;SPAN&gt;(arithmetic) propagates missing values while&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;functions&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;ignore missing values.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What if you use a function with an operator?&lt;BR /&gt;&lt;BR /&gt;Ie sum(of var1-var9) ?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 19:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610817#M177942</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-12-10T19:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Are numeric missing values...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610818#M177943</link>
      <description>&lt;P&gt;should your operands(variable values) are all missing, of course you would get the result as missing too, otherwise, the propagation of missing values doesn't occur when you use functions. For example,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing=0;

data w;
k=sum(.,.,.,.,20);
k1=sum(.,.,.,.,.,.);
k2=.+.+.+20;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing=.;

data w;
k=sum(.,.,.,.,20);
k1=sum(.,.,.,.,.,.);
k2=.+.+.+20;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Dec 2019 19:59:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610818#M177943</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-12-10T19:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Are numeric missing values...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610819#M177944</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201537"&gt;@edasdfasdfasdfa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;naturally treated as 0's?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No they are treated naturally as missing.&amp;nbsp; So depending on what you are doing the result is what your would normally expect.&lt;/P&gt;
&lt;P&gt;So simple operators, like +-*/, will generate a missing values as a result of operating on one or more missing values.&lt;/P&gt;
&lt;P&gt;But more complex operations like MIN(), MAX(), SUM(), MEAN() will work appropriately.&amp;nbsp; So if your data values are&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;1 . 2 3 4 &lt;/PRE&gt;
&lt;P&gt;The SUM() will be 10, but the MEAN() will be 10/4 = 2.5 and NOT 10/5=2 since the missing values does not contribute.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 20:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610819#M177944</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-10T20:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Are numeric missing values...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610852#M177968</link>
      <description>&lt;P&gt;You've gotten many responses about the behavior of missing values, but it sounds like you're asking how to set numeric missing to zero. Perhaps this previous post is what you're looking for:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/How-to-set-all-missing-values-to-zero-for-all-variables/td-p/41478" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/How-to-set-all-missing-values-to-zero-for-all-variables/td-p/41478&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 21:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Are-numeric-missing-values/m-p/610852#M177968</guid>
      <dc:creator>seeff</dc:creator>
      <dc:date>2019-12-10T21:57:21Z</dc:date>
    </item>
  </channel>
</rss>

