<?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: Import a blank spreadsheet column as an interval variable in SAS Enterprise Miner in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-a-blank-spreadsheet-column-as-an-interval-variable-in-SAS/m-p/809183#M319078</link>
    <description>&lt;P&gt;Thanks for the response. The variable with all missing values is not used to build the model. Instead, this empty&amp;nbsp; target variable is in a score data where the model is used for prediction.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2022 22:20:46 GMT</pubDate>
    <dc:creator>Keigo</dc:creator>
    <dc:date>2022-04-21T22:20:46Z</dc:date>
    <item>
      <title>Import a blank spreadsheet column as an interval variable in SAS Enterprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-a-blank-spreadsheet-column-as-an-interval-variable-in-SAS/m-p/808963#M318995</link>
      <description>&lt;P&gt;I used &lt;STRONG&gt;SAS Enterprise Miner&lt;/STRONG&gt; to build a prediction model and now am applying it to score a new excel data where the numerical target variable is an empty column. I believe that the empty values cause the target variable to be recognized as categorical in the score data and I cannot select 'interval' as the role. How can I use the model to predict the numerical target variable in the score data? I already tried to change blanks to '.' in the excel file for SAS to take this column as numerical but it doesn't work. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 04:14:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-a-blank-spreadsheet-column-as-an-interval-variable-in-SAS/m-p/808963#M318995</guid>
      <dc:creator>Keigo</dc:creator>
      <dc:date>2022-04-21T04:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Import a blank spreadsheet column as an interval variable in SAS Enterprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-a-blank-spreadsheet-column-as-an-interval-variable-in-SAS/m-p/808970#M318997</link>
      <description>&lt;P&gt;A variable that has only missing values is statistically useless, anyway.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 05:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-a-blank-spreadsheet-column-as-an-interval-variable-in-SAS/m-p/808970#M318997</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-21T05:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Import a blank spreadsheet column as an interval variable in SAS Enterprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-a-blank-spreadsheet-column-as-an-interval-variable-in-SAS/m-p/808971#M318998</link>
      <description>&lt;P&gt;Fill the column with zeroes if you want to overwrite it.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 05:17:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-a-blank-spreadsheet-column-as-an-interval-variable-in-SAS/m-p/808971#M318998</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-21T05:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Import a blank spreadsheet column as an interval variable in SAS Enterprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-a-blank-spreadsheet-column-as-an-interval-variable-in-SAS/m-p/809094#M319046</link>
      <description>&lt;P&gt;Since . would be a CHARACTER in EXCEL I doubt that would help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Importing Excel directly means that you are at the mercy of the engines used to read from Excel. Excel has no concept of "variable" or column type per se. If the cells contain numbers, such as 0 you might be okay.&lt;/P&gt;
&lt;P&gt;Or do some manipulation of the data set after import to create a numeric variable. If many of the character values are supposed to be numeric you might try a data step similar to:&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   newvar = input(problemvar, 32.);
run;&lt;/PRE&gt;
&lt;P&gt;and see if using Newvar instead of the existing variable "works".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you search or even just scan this forum you will see that problems with data starting in Excel, or going to Excel, is an extremely common problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 14:57:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-a-blank-spreadsheet-column-as-an-interval-variable-in-SAS/m-p/809094#M319046</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-21T14:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Import a blank spreadsheet column as an interval variable in SAS Enterprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-a-blank-spreadsheet-column-as-an-interval-variable-in-SAS/m-p/809183#M319078</link>
      <description>&lt;P&gt;Thanks for the response. The variable with all missing values is not used to build the model. Instead, this empty&amp;nbsp; target variable is in a score data where the model is used for prediction.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 22:20:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-a-blank-spreadsheet-column-as-an-interval-variable-in-SAS/m-p/809183#M319078</guid>
      <dc:creator>Keigo</dc:creator>
      <dc:date>2022-04-21T22:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Import a blank spreadsheet column as an interval variable in SAS Enterprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-a-blank-spreadsheet-column-as-an-interval-variable-in-SAS/m-p/809184#M319079</link>
      <description>&lt;P&gt;Thank you for the code and I believe it will work. But I think there should be a solution without using SAS code in SAS Enterprise Miner.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS enterprise miner has a score node that is used to connect model and score data for prediction purpose. It is a common procedure to score new data in SAS enterprise miner so it is very hard to believe no setting can be used to recognize the numerical target variable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 22:51:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-a-blank-spreadsheet-column-as-an-interval-variable-in-SAS/m-p/809184#M319079</guid>
      <dc:creator>Keigo</dc:creator>
      <dc:date>2022-04-21T22:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Import a blank spreadsheet column as an interval variable in SAS Enterprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-a-blank-spreadsheet-column-as-an-interval-variable-in-SAS/m-p/809202#M319083</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/391854"&gt;@Keigo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for the response. The variable with all missing values is not used to build the model. Instead, this empty&amp;nbsp; target variable is in a score data where the model is used for prediction.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So it will be overwritten anyway, which means it can have any numeric value.&lt;/P&gt;
&lt;P&gt;Using a file format (csv) where &lt;EM&gt;you&lt;/EM&gt; have control over variable attributes is also an option.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 05:47:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-a-blank-spreadsheet-column-as-an-interval-variable-in-SAS/m-p/809202#M319083</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-22T05:47:35Z</dc:date>
    </item>
  </channel>
</rss>

