<?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 Missing option in class statement proc logistic in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-option-in-class-statement-proc-logistic/m-p/327745#M17296</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can some one tell me how do wew specify missing function in the class statement while running a logistic regression?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2017 15:54:22 GMT</pubDate>
    <dc:creator>Lopa2016</dc:creator>
    <dc:date>2017-01-26T15:54:22Z</dc:date>
    <item>
      <title>Missing option in class statement proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-option-in-class-statement-proc-logistic/m-p/327745#M17296</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can some one tell me how do wew specify missing function in the class statement while running a logistic regression?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 15:54:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-option-in-class-statement-proc-logistic/m-p/327745#M17296</guid>
      <dc:creator>Lopa2016</dc:creator>
      <dc:date>2017-01-26T15:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Missing option in class statement proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-option-in-class-statement-proc-logistic/m-p/327748#M17297</link>
      <description>&lt;P&gt;Do you mean that you want a missing value to be a valid group? If so, use the MISSING option, &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_logistic_syntax05.htm" target="_self"&gt;as stated in the documentation&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;class C / missing;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 15:57:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-option-in-class-statement-proc-logistic/m-p/327748#M17297</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-01-26T15:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Missing option in class statement proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-option-in-class-statement-proc-logistic/m-p/327749#M17298</link>
      <description>&lt;P&gt;I'm not sure what you mean by "missing function" in this context. If you want to treat missing values of the class variables as valid levels for analysis the add / missing to the class statement after the variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CLASS var1 var2 var3 / missing;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 15:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-option-in-class-statement-proc-logistic/m-p/327749#M17298</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-26T15:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Missing option in class statement proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-option-in-class-statement-proc-logistic/m-p/327948#M17301</link>
      <description>&lt;P&gt;Yes I am talking about the same I did try using that but still I am not geeting scores for all observations &amp;amp; I get this note:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data = train_new desc plots(only)=roc;&lt;BR /&gt;class &amp;amp;char /missing ;&lt;BR /&gt;model Target&amp;nbsp;= &amp;amp;final_vars &amp;amp;char/ pevent=.08 rsquare lackfit ;&lt;BR /&gt;&lt;BR /&gt;score data = score_file&amp;nbsp;out = predict_&lt;SPAN&gt;score_file&amp;nbsp;&lt;/SPAN&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;NOTE: Some observations in the WORK.&lt;SPAN&gt;score_file &amp;nbsp;&lt;/SPAN&gt;data set are not scored because they have class levels that are missing or are&lt;BR /&gt;not present in the analysis data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 08:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-option-in-class-statement-proc-logistic/m-p/327948#M17301</guid>
      <dc:creator>Lopa2016</dc:creator>
      <dc:date>2017-01-27T08:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Missing option in class statement proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-option-in-class-statement-proc-logistic/m-p/328003#M17304</link>
      <description>&lt;P&gt;The message says&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt; NOTE: Some observations in the WORK.&lt;/SPAN&gt;&lt;SPAN&gt;score_file &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;data set are not scored because they have class levels that are missing &lt;STRONG&gt;or are&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;not present in the analysis data set.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to ensure that all possible levels in the scoring data set are also in the training data.&lt;/P&gt;
&lt;P&gt;I suspect that the problem is that the&amp;nbsp;&lt;SPAN&gt;score_file data has nonmissing levels that are not in&amp;nbsp;train_new.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It's easy to check:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc freq data=train_new;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;tables &amp;amp;char;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc freq data=score_file;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;tables &amp;amp;char;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 12:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-option-in-class-statement-proc-logistic/m-p/328003#M17304</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-01-27T12:43:50Z</dc:date>
    </item>
  </channel>
</rss>

