<?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: How to set a coded value recognized as missing in SAS? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-a-coded-value-recognized-as-missing-in-SAS/m-p/87832#M289333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What imputation method are you going to use on character values? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Dec 2012 16:09:03 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2012-12-03T16:09:03Z</dc:date>
    <item>
      <title>How to set a coded value recognized as missing in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-a-coded-value-recognized-as-missing-in-SAS/m-p/87830#M289331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I guess my problem is a little complex here.&amp;nbsp; I need to specify MISSING VALUES to be able to do IMPUTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SoI have a dataset with several variables and each of the variables has missing values, however they are coded in some ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example,&amp;nbsp; data one looks like this,&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="width: 100%; border: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;vb1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;vb2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;vb3&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;b&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;a&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;a&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;c&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;b&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually, in vb1, "1" means missing; in vb2 "a" means messing and in vb3, "4" means missing and so on;&amp;nbsp; Those values means "missing", "unknown", "unspecified", so they are missings just they've been coded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually use proc sql to create a new table, and doing something like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;data vb1_index;&lt;/P&gt;&lt;P&gt;set one;&lt;/P&gt;&lt;P&gt;input value $ value_d $;&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. use "proc sql" to combine tables together&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the final results, sas looks at it like vb1 has "no missing values" with "3" (instead of 5) obsetrvations and same as for vb2, vb3...... in this way I have nothing missing since sas only looks at completed cases.&amp;nbsp; I used proc means n nmiss options to get the results.&amp;nbsp; so i don't know if my imputation is going to work well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know a quick way to set those values as missing values because my "several" variables are like.....30+, thank you all very much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 02:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-a-coded-value-recognized-as-missing-in-SAS/m-p/87830#M289331</guid>
      <dc:creator>Lulus</dc:creator>
      <dc:date>2012-12-03T02:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a coded value recognized as missing in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-a-coded-value-recognized-as-missing-in-SAS/m-p/87831#M289332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the missing value different for every value?&lt;/P&gt;&lt;P&gt;If so there isn't much of a short cut. Formats may help speed it up though if you have some that are similar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 05:57:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-a-coded-value-recognized-as-missing-in-SAS/m-p/87831#M289332</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-12-03T05:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a coded value recognized as missing in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-a-coded-value-recognized-as-missing-in-SAS/m-p/87832#M289333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What imputation method are you going to use on character values? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 16:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-a-coded-value-recognized-as-missing-in-SAS/m-p/87832#M289333</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-12-03T16:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a coded value recognized as missing in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-a-coded-value-recognized-as-missing-in-SAS/m-p/87833#M289334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you show us exactly what your proc means step looks like? I'm wondering if you're using VB1 to VB3 as analysis variables or classification variables. Either way, you're not coding it exactly right to get the results you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 20:11:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-a-coded-value-recognized-as-missing-in-SAS/m-p/87833#M289334</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2012-12-03T20:11:31Z</dc:date>
    </item>
  </channel>
</rss>

