<?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: Why is PROC MI ---FCS Logistic failing in SAS 9.4 to generate impute on categorical fields? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Why-is-PROC-MI-FCS-Logistic-failing-in-SAS-9-4-to-generate/m-p/250111#M13173</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem lies with the data. Run the following syntax:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data = laptops_dataset_raw;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;tables Memory_Technology;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It shows that MEMORY_TECHNOLOGY has no missing values, but it does have values are coded as '?'. A question mark is not recognized as a missing value in SAS. Recode the question marks to SAS missing values. Note that this should also be done for other variables that use question marks (e.g.,&amp;nbsp;MAX_HORIZONTAL_RESOLUTION).&amp;nbsp;After the data are cleaned up,&amp;nbsp;try running PROC MI again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2016 15:12:30 GMT</pubDate>
    <dc:creator>StatsGeek</dc:creator>
    <dc:date>2016-02-15T15:12:30Z</dc:date>
    <item>
      <title>Why is PROC MI ---FCS Logistic failing in SAS 9.4 to generate impute on categorical fields?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-is-PROC-MI-FCS-Logistic-failing-in-SAS-9-4-to-generate/m-p/249860#M13172</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am confused why I am having to translate 3 of my 4 categorical variables with missing values that were cast as $Char4. into numerical variables in order for the PROC MI statement with FCS to work. I thought the whole point of PROC MI &amp;gt; FCS &amp;gt; LOGISTIC was to impute when the data is categorical. In fact, I've used it in the past to impute a "Job" field on an insurance dataset that was missing values so I know it works --though that was cast as a Text13. field. Does that matter????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't get why the PROC MI is failing for the Memory_Technology field which is a $char18. categorical field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if I use the LOGISTIC model which I thought I was reading was for categorical variables it returns non-categorical variables (eg. 1022.7814 when 1000 is a possibility or the next nearest category 1024).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see the attached data file and the code I am using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the right results using this for 3 of the 4 fields (categories were appropriately generated but not for Memory_Technology):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MI DATA=mydata1.comp2 seed=123 nimpute=15 OUT=impRSLTS;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;CLASS Memory_Technology Max_Horizontal_Resolution Installed_Memory&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; Processor_Speed Processor Manufacturer Operating_System;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;FCS NBITER=5 DISCRIM(Memory_Technology Max_Horizontal_Resolution Installed_Memory Processor_Speed/details); * Use 5 burn-in iterations;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;VAR Memory_Technology Max_Horizontal_Resolution Installed_Memory Processor_Speed&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Processor Manufacturer Warranty_days&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;dv_Infrared dv_Bluetooth dv_DockStnPrtRep_yy dv_DockStnPrtRep_yn&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;dv_DockStnPrtRep_ny dv_DockStnPrtRep_nn dv_Fingerprint dv_Subwoofer&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;SQRTprice dv_CDMA Operating_System dv_Ext_Battery;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's showing the patterns for impute with 'X' never missing for Memory_Technology but it is missing in 63 cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*UGH!*&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2016 10:04:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-is-PROC-MI-FCS-Logistic-failing-in-SAS-9-4-to-generate/m-p/249860#M13172</guid>
      <dc:creator>CloudcroftS_NWU</dc:creator>
      <dc:date>2016-02-13T10:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is PROC MI ---FCS Logistic failing in SAS 9.4 to generate impute on categorical fields?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-is-PROC-MI-FCS-Logistic-failing-in-SAS-9-4-to-generate/m-p/250111#M13173</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem lies with the data. Run the following syntax:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data = laptops_dataset_raw;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;tables Memory_Technology;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It shows that MEMORY_TECHNOLOGY has no missing values, but it does have values are coded as '?'. A question mark is not recognized as a missing value in SAS. Recode the question marks to SAS missing values. Note that this should also be done for other variables that use question marks (e.g.,&amp;nbsp;MAX_HORIZONTAL_RESOLUTION).&amp;nbsp;After the data are cleaned up,&amp;nbsp;try running PROC MI again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 15:12:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-is-PROC-MI-FCS-Logistic-failing-in-SAS-9-4-to-generate/m-p/250111#M13173</guid>
      <dc:creator>StatsGeek</dc:creator>
      <dc:date>2016-02-15T15:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why is PROC MI ---FCS Logistic failing in SAS 9.4 to generate impute on categorical fields?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-is-PROC-MI-FCS-Logistic-failing-in-SAS-9-4-to-generate/m-p/250185#M13183</link>
      <description>&lt;P&gt;Yes...that was done prior to running the PROC. That's how I got the three&lt;BR /&gt;values generated that were numerical. It is the categorical variable that&lt;BR /&gt;is failing. Even with and missing value replacing the question mark.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 00:39:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-is-PROC-MI-FCS-Logistic-failing-in-SAS-9-4-to-generate/m-p/250185#M13183</guid>
      <dc:creator>CloudcroftS_NWU</dc:creator>
      <dc:date>2016-02-18T00:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why is PROC MI ---FCS Logistic failing in SAS 9.4 to generate impute on categorical fields?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-is-PROC-MI-FCS-Logistic-failing-in-SAS-9-4-to-generate/m-p/250258#M13194</link>
      <description>Hi,&lt;BR /&gt;Well, although you tried to replace the question marks, you did not actually... There is a difference between numeric and categorical missing values in SAS. The '.' character is a valid character for character variables, not a missing value. You have several options, e.g. use IF(Memory_Technology='?') THEN Memory_Technology=''; or IF(Memory_Technology='?') THEN call missing(Memory_Technology); in the data step.&lt;BR /&gt;&lt;BR /&gt;Note also that comparisons like IF(Processor_Speed='?') do not make much sense for numeric variables since, well, they are numeric and '?' is a character...&lt;BR /&gt;&lt;BR /&gt;Please consider taking some of the free SAS tutorials found at &lt;A href="http://support.sas.com/training/tutorial/" target="_blank"&gt;http://support.sas.com/training/tutorial/&lt;/A&gt; You should find the "Free SAS Programming 1 e-Course" particularly useful.&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;PK</description>
      <pubDate>Tue, 16 Feb 2016 08:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-is-PROC-MI-FCS-Logistic-failing-in-SAS-9-4-to-generate/m-p/250258#M13194</guid>
      <dc:creator>peeeeekaaaaa</dc:creator>
      <dc:date>2016-02-16T08:03:10Z</dc:date>
    </item>
  </channel>
</rss>

