<?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: Can't score 'test' data set in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/552170#M9124</link>
    <description>You cannot create a model without a response variable.</description>
    <pubDate>Thu, 18 Apr 2019 15:34:16 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-04-18T15:34:16Z</dc:date>
    <item>
      <title>Can't score 'test' data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551909#M9071</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I've split the train into train and validation. I used the train data and fitted it, and then used that (model) to score validation. Now I'm unsure how I would go about scoring/predicting the test set. The original model does not seem to work as the test data does not have the response variable unlike the train/validation data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 21:32:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551909#M9071</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-04-17T21:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can't score 'test' data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551912#M9074</link>
      <description>&lt;P&gt;Here is what I have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data = traina outmodel=model1;&lt;BR /&gt;class Gender Married Self_Employed Property Education N_Dependents (ref='1')/ param = ref;&lt;BR /&gt;model Lo_Status(event='1') = Credit_History Education N_Dependents Self_Employed L_Amount_Term Gender Married Property L_Amount Applicant Co_Applicant;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc logistic inmodel=model1;&lt;BR /&gt;score data=valid out=validacc fitstat;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how would I now predict accuracy for test set? (as mentioned, my response variable is not in the test data set so technically it is not the same model?)&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 21:48:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551912#M9074</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-04-17T21:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can't score 'test' data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551916#M9075</link>
      <description>Look into PROC PLM, though score should work. You don't need the response variable to score the data but you do for an accuracy measurement.</description>
      <pubDate>Wed, 17 Apr 2019 22:19:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551916#M9075</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-04-17T22:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can't score 'test' data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551926#M9078</link>
      <description>&lt;P&gt;Isn't scoring and accuracy the same thing really? (ie when you score a validation set, isn't that predicting an accuracy? It just happens to be an accuracy on actual examples it was constructed on..where for test...the scoring is accuracy on unseen data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 22:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551926#M9078</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-04-17T22:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can't score 'test' data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551930#M9079</link>
      <description>Not afaik, at least not within SAS. Scoring, just means calculating the expected value based on the new model.</description>
      <pubDate>Wed, 17 Apr 2019 22:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551930#M9079</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-04-17T22:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can't score 'test' data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551934#M9081</link>
      <description>&lt;P&gt;So what would be the code for making a prediction ?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 23:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551934#M9081</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-04-17T23:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can't score 'test' data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551936#M9082</link>
      <description>Your code above does that, it's in the validACC data set. Because you used INMODEL, the model is the same, it's not refit to new data, it's just scored. The documentation has a fully worked example here:&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_logistic_examples20.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_logistic_examples20.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;</description>
      <pubDate>Wed, 17 Apr 2019 23:06:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551936#M9082</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-04-17T23:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't score 'test' data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551938#M9083</link>
      <description>&lt;P&gt;I actually looked at that link for an example as I was working on the code. So you are saying, in that above example of code I showed, since I am not re-fitting, I am producing an accuracy for the validation data set and it is stored/within the valacc data set?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 23:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551938#M9083</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-04-17T23:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can't score 'test' data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551939#M9084</link>
      <description>The fitstats will give you the AIC type stats - those should just be in the results window, the scored data with the predicted values should be in the valacc data set.</description>
      <pubDate>Wed, 17 Apr 2019 23:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551939#M9084</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-04-17T23:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can't score 'test' data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551941#M9085</link>
      <description>&lt;P&gt;If you want the accuracy data in a data set add this line to your proc logistic code that's scoring the data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output scorefitstat=want;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The results will be in the WANT data set.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 23:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551941#M9085</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-04-17T23:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can't score 'test' data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551955#M9090</link>
      <description>&lt;P&gt;I'm still a bit confused on how I would fit a model WITHOUT a response variable (the test data does not have it). I need to score it but I can't score it if I can't create a model from the test data set.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 01:33:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/551955#M9090</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-04-18T01:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can't score 'test' data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/552151#M9116</link>
      <description>You can't fit a model without a response variable. But scoring is applying an existing model to new data. If you want to run a new model, use a new proc logistic step.</description>
      <pubDate>Thu, 18 Apr 2019 14:55:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/552151#M9116</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-04-18T14:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can't score 'test' data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/552168#M9122</link>
      <description>&lt;P&gt;I want to create/run a new model but how do i do that using proc logistic without the data set (test) having a response variable? You can actually create a model without a response variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry if I am misunderstanding you.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 15:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/552168#M9122</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-04-18T15:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can't score 'test' data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/552170#M9124</link>
      <description>You cannot create a model without a response variable.</description>
      <pubDate>Thu, 18 Apr 2019 15:34:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-t-score-test-data-set/m-p/552170#M9124</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-04-18T15:34:16Z</dc:date>
    </item>
  </channel>
</rss>

