<?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: NA are called unknown in the dataset in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/NA-are-called-unknown-in-the-dataset/m-p/791693#M397</link>
    <description>&lt;P&gt;Thank you so much and sorry for my late answer!&lt;/P&gt;&lt;P&gt;Martina&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jan 2022 07:02:01 GMT</pubDate>
    <dc:creator>smartis</dc:creator>
    <dc:date>2022-01-23T07:02:01Z</dc:date>
    <item>
      <title>NA are called unknown in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/NA-are-called-unknown-in-the-dataset/m-p/791108#M380</link>
      <description>&lt;P&gt;Goodmorning everyone!&lt;/P&gt;&lt;P&gt;I uploaded a dataset on Sas Viya for Learners.&lt;/P&gt;&lt;P&gt;My problem is: the NA values are called unknown.. how can I recall them with the classic name: 'NA' so that SAS recognise and process them as NA?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;Martina&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 10:38:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/NA-are-called-unknown-in-the-dataset/m-p/791108#M380</guid>
      <dc:creator>smartis</dc:creator>
      <dc:date>2022-01-20T10:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: NA are called unknown in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/NA-are-called-unknown-in-the-dataset/m-p/791123#M381</link>
      <description>&lt;P&gt;I guess(!) that you actually did not upload a dataset, but a data &lt;EM&gt;file&lt;/EM&gt; that was then imported into SAS and has a numeric column with 'NA' in some places. Is that correct?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 11:42:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/NA-are-called-unknown-in-the-dataset/m-p/791123#M381</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-01-20T11:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: NA are called unknown in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/NA-are-called-unknown-in-the-dataset/m-p/791135#M382</link>
      <description>&lt;P&gt;not really, sorry, probably I didn't explain well myself:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the dataset I'm working on there are, in different columns, values called 'unknown', when I perform the imputation, SAS tell me that there aren't missing values, but actually there are and they are the unknowns!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So know: how can I substitute that 'unknown' into NA's??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Martina&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 13:23:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/NA-are-called-unknown-in-the-dataset/m-p/791135#M382</guid>
      <dc:creator>smartis</dc:creator>
      <dc:date>2022-01-20T13:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: NA are called unknown in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/NA-are-called-unknown-in-the-dataset/m-p/791183#M385</link>
      <description>&lt;P&gt;OK, so we need to know&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the type of the source variable&lt;/LI&gt;
&lt;LI&gt;the format assigned to it&lt;/LI&gt;
&lt;LI&gt;if character, the defined length will also be good to know&lt;/LI&gt;
&lt;LI&gt;the raw content (displayed without a format)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Run a PROC CONTENTS on the dataset. If you find a format attached, run this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
set dataset (obs=10);
format var; /* removes any format */
put var;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(replace "dataset" and "var" with your dataset and variable name, respectively)&lt;/P&gt;
&lt;P&gt;This will write the first 10 values to the SAS log, from where you can copy/paste them here.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 16:03:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/NA-are-called-unknown-in-the-dataset/m-p/791183#M385</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-01-20T16:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: NA are called unknown in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/NA-are-called-unknown-in-the-dataset/m-p/791192#M386</link>
      <description>&lt;P&gt;NAs are a concept in R/Python.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nulls/Missing are a DB concept&lt;/P&gt;
&lt;P&gt;SAS uses spaces/blanks for character missing and . (period) for numeric missing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this a correct interpretation of your question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You have a data set that you're trying to impute missing data&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;The field is character&lt;/LI&gt;
&lt;LI&gt;One of the values in the field is 'unknown' and SAS is not treating the unknown as missing&lt;/LI&gt;
&lt;LI&gt;You want to impute for the 'unknown values in the column&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If this is correct, you first need to recode the unknown to missing&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data missing;
set have;

if varInterest='unknown' then call missing(varInterest);

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/413444"&gt;@smartis&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;not really, sorry, probably I didn't explain well myself:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the dataset I'm working on there are, in different columns, values called 'unknown', when I perform the imputation, SAS tell me that there aren't missing values, but actually there are and they are the unknowns!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So know: how can I substitute that 'unknown' into NA's??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Martina&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 16:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/NA-are-called-unknown-in-the-dataset/m-p/791192#M386</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-20T16:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: NA are called unknown in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/NA-are-called-unknown-in-the-dataset/m-p/791693#M397</link>
      <description>&lt;P&gt;Thank you so much and sorry for my late answer!&lt;/P&gt;&lt;P&gt;Martina&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jan 2022 07:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/NA-are-called-unknown-in-the-dataset/m-p/791693#M397</guid>
      <dc:creator>smartis</dc:creator>
      <dc:date>2022-01-23T07:02:01Z</dc:date>
    </item>
  </channel>
</rss>

