<?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 outmodel= scoring in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-outmodel-scoring/m-p/40657#M1689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where does that estimates dataset come from? I see the data set XXX and predict have x1 and x2, but the estimates dataset kinda pops up outta nowhere, or is that just a typo for the demo here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your also missing a semi-colon after the run statement (with the proc sort).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2011 16:19:04 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2011-08-02T16:19:04Z</dc:date>
    <item>
      <title>proc logistic outmodel= scoring</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-outmodel-scoring/m-p/40656#M1688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so i created a simple data set and ordinal logistic model to illustrate the issue i am having. i am modeling my data (xxx) and then create a new data set (predict) for which i want to score and get estimated probabilities. everything works out fine ( i am able to get the estimated probabilities in the scores data set) but i keep getting these warning messages that I dont know how to fix. see below for warning messages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data xxx;&lt;/P&gt;&lt;P&gt;input y x1 x2;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 1 1&lt;/P&gt;&lt;P&gt;1 2 1&lt;/P&gt;&lt;P&gt;1 2 2&lt;/P&gt;&lt;P&gt;2 1 1&lt;/P&gt;&lt;P&gt;3 2 2&lt;/P&gt;&lt;P&gt;2 1 2&lt;/P&gt;&lt;P&gt;3 1 1&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value y 1='satisfied' 2='neither' 3='dissatisfied';&lt;/P&gt;&lt;P&gt;value xone 1='no' 2='yes';&lt;/P&gt;&lt;P&gt;value xtwo 1='cat' 2='dog';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=xxx; by y; run;&lt;/P&gt;&lt;P&gt;proc logistic data=xxx order=data &lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;outmodel=estimates&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;format y y. x1 xone. x2 xtwo.;&lt;/P&gt;&lt;P&gt;class&amp;nbsp; x1(ref='no') x2(ref='cat') / param=ref;&lt;/P&gt;&lt;P&gt;model y = x1 x2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data predict;&lt;/P&gt;&lt;P&gt;do x1=1 to 2 by 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do x2=1 to 2 by 1; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc logistic inmodel=estimates;&lt;/P&gt;&lt;P&gt;score data=predict out=scores;&lt;/P&gt;&lt;P&gt;format x1 xone. x2 xtwo.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sas keeps telling me that x1 and x2 are not in the estimates dataset but if you look into the dataset you can clearly see the two variables are in there.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;7052&amp;nbsp; proc logistic inmodel=estimates;&lt;/P&gt;&lt;P&gt;7053&amp;nbsp; score data=predict out=scores;&lt;/P&gt;&lt;P&gt;7054&amp;nbsp; format x1 xone. x2 xtwo.;&lt;/P&gt;&lt;P&gt;WARNING: Variable X1 not found in data set WORK.ESTIMATES.&lt;/P&gt;&lt;P&gt;WARNING: Variable X2 not found in data set WORK.ESTIMATES.&lt;/P&gt;&lt;P&gt;7055&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.SCORES has 4 observations and 6 variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;never the less I still get the predicted probabilites in the score dataset. however when I&lt;/STRONG&gt;&lt;STRONG&gt; reverse the score and format statements i get this error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7056&amp;nbsp; proc logistic inmodel=estimates;&lt;/P&gt;&lt;P&gt;7057&amp;nbsp; format x1 xone. x2 xtwo.;score data=predict out=scores;&lt;/P&gt;&lt;P&gt;WARNING: Variable X1 not found in data set WORK.ESTIMATES.&lt;/P&gt;&lt;P&gt;WARNING: Variable X2 not found in data set WORK.ESTIMATES.&lt;/P&gt;&lt;P&gt;7058&lt;/P&gt;&lt;P&gt;7059&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &lt;EM&gt;&lt;STRONG&gt;The scored data contains missing values due to a class level which is not in the training data set.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.SCORES has 4 observations and 6 variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;the predicted probabilities do not get calculated.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if i leave out the format statement the predicted probabilities still do not get calculated:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7060&amp;nbsp; proc logistic inmodel=estimates;&lt;/P&gt;&lt;P&gt;7061&amp;nbsp; score data=predict out=scores;&lt;/P&gt;&lt;P&gt;7062&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &lt;EM&gt;&lt;STRONG&gt;The scored data contains missing values due to a class level which is not in the training data set.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.SCORES has 4 observations and 6 variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i am thinking it has something to do with the format statment. its driving me nuts. any help?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 15:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-outmodel-scoring/m-p/40656#M1688</guid>
      <dc:creator>trekvana</dc:creator>
      <dc:date>2011-08-02T15:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic outmodel= scoring</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-outmodel-scoring/m-p/40657#M1689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where does that estimates dataset come from? I see the data set XXX and predict have x1 and x2, but the estimates dataset kinda pops up outta nowhere, or is that just a typo for the demo here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your also missing a semi-colon after the run statement (with the proc sort).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 16:19:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-outmodel-scoring/m-p/40657#M1689</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-08-02T16:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic outmodel= scoring</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-outmodel-scoring/m-p/40658#M1690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;reeza- oops my mistake. in the original proc logistic it should be outmodel=estimates instead of outmodel=scores. i have corrected this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: ok corrected the semicolon. i am stilling getting those warnings. any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 16:23:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-outmodel-scoring/m-p/40658#M1690</guid>
      <dc:creator>trekvana</dc:creator>
      <dc:date>2011-08-02T16:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic outmodel= scoring</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-outmodel-scoring/m-p/40659#M1691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the SAS DOCs :&lt;/P&gt;&lt;P&gt;FORMAT statements are not allowed when the INMODEL= data set is specified; variables in the &lt;A _jive_internal="true" href="https://communities.sas.com/statug_logistic_sect021.htm#statug.logistic.logisticscoredata"&gt;DATA=&lt;/A&gt; and &lt;A _jive_internal="true" href="https://communities.sas.com/statug_logistic_sect021.htm#statug.logistic.logisticprior"&gt;PRIOR=&lt;/A&gt; data sets in the &lt;A _jive_internal="true" href="https://communities.sas.com/statug_logistic_sect021.htm"&gt;SCORE&lt;/A&gt; statement should be formatted within the data sets. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 16:29:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-outmodel-scoring/m-p/40659#M1691</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-08-02T16:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic outmodel= scoring</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-outmodel-scoring/m-p/40660#M1692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;would you be able to tell me how i could format the variables within the data sets?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 16:32:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-outmodel-scoring/m-p/40660#M1692</guid>
      <dc:creator>trekvana</dc:creator>
      <dc:date>2011-08-02T16:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic outmodel= scoring</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-outmodel-scoring/m-p/40661#M1693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;haha. the answer was so simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data predict;&lt;/P&gt;&lt;P&gt;do x1=1 to 2 by 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do x2=1 to 2 by 1; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;format x1 xone. x2 xtwo.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and now everything works ok. thanks reeza for the eye opener&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 16:37:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-outmodel-scoring/m-p/40661#M1693</guid>
      <dc:creator>trekvana</dc:creator>
      <dc:date>2011-08-02T16:37:12Z</dc:date>
    </item>
  </channel>
</rss>

