<?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: PROC LOGISTIC - only missing values for P_1 and P_0 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-LOGISTIC-only-missing-values-for-P-1-and-P-0/m-p/684696#M207531</link>
    <description>&lt;P&gt;You say "&lt;EM&gt;Scoringsatz and Testsatz have exactly the same number of columns and column names.&lt;/EM&gt;" That's good but not enough. The &lt;STRONG&gt;levels&lt;/STRONG&gt; of class variables must also be the same. If a variable is coded as YES or NO in Scoringsatz and Yes or No in Testsatz, the procedure will not calculate the probs.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 16:35:38 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2020-09-17T16:35:38Z</dc:date>
    <item>
      <title>PROC LOGISTIC - only missing values for P_1 and P_0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-LOGISTIC-only-missing-values-for-P-1-and-P-0/m-p/684604#M207490</link>
      <description>&lt;P&gt;Dear SAS community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a personal crisis due to PROC LOGISTIC.&lt;/P&gt;&lt;P&gt;I am training my model using a data set scoringsatz, and I want to test it using testsatz, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC LOGISTIC DATA=&amp;amp;scoringsatz
          outest=work.Model_Parameters
        outmodel=work.model_out
          PLOTS(ONLY)=ALL
          ;
class &amp;amp;varlist_model
;
     MODEL &amp;amp;ziel (Event = '0')=
&amp;amp;varlist_model
     /
          gof
        SELECTION=none SLE=0.05 SLS=0.05
          CORRB
          RSQUARE
          CTABLE
          LINK=LOGIT
          CLPARM=WALD
          ALPHA=&amp;amp;alpha.
          
     ;
     OUTPUT OUT=&amp;amp;scoringsatz._out (LABEL="" DROP=__FLAG) 
          PREDPROBS=INDIVIDUAL;
    score data=&amp;amp;testsatz out=ergebnis_out  ;&lt;/PRE&gt;&lt;P&gt;But here's the problem: ergebnis_out only shows missing values for P_1 and P_0. And I have been trying to figure out for 2 days now why that is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Scoringsatz and Testsatz have exactly the same number of columns and column names.&lt;/P&gt;&lt;P&gt;- If I test the model using the trainingset, it works.&lt;/P&gt;&lt;P&gt;- If I split the trainingset using surveyselect and then use 1 of the sets for training and the other for testing it also works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, it should be due to the testset? But except for different entries it has the exact same structure??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot post parts of the datasets as they are sensitive data with personal info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any hints,&lt;/P&gt;&lt;P&gt;Miriam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 13:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-LOGISTIC-only-missing-values-for-P-1-and-P-0/m-p/684604#M207490</guid>
      <dc:creator>miriam93</dc:creator>
      <dc:date>2020-09-17T13:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC - only missing values for P_1 and P_0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-LOGISTIC-only-missing-values-for-P-1-and-P-0/m-p/684608#M207491</link>
      <description>&lt;P&gt;The only reason I know of to get missing values for P_1 and P_0 is because there are missing values in your predictor variables. So you need to look in the data sets involved to see if there are missing values there for the predictor variables.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 13:46:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-LOGISTIC-only-missing-values-for-P-1-and-P-0/m-p/684608#M207491</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-17T13:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC - only missing values for P_1 and P_0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-LOGISTIC-only-missing-values-for-P-1-and-P-0/m-p/684696#M207531</link>
      <description>&lt;P&gt;You say "&lt;EM&gt;Scoringsatz and Testsatz have exactly the same number of columns and column names.&lt;/EM&gt;" That's good but not enough. The &lt;STRONG&gt;levels&lt;/STRONG&gt; of class variables must also be the same. If a variable is coded as YES or NO in Scoringsatz and Yes or No in Testsatz, the procedure will not calculate the probs.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 16:35:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-LOGISTIC-only-missing-values-for-P-1-and-P-0/m-p/684696#M207531</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-09-17T16:35:38Z</dc:date>
    </item>
  </channel>
</rss>

