<?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: How to interpret fields in the prediction data set? in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-interpret-fields-in-the-prediction-data-set/m-p/678097#M8395</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/20964"&gt;@CatTruxillo&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;, thank you both very much for your answers, and Cat's answer is most comprehensive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did a check earlier and found that F_Responder is the Actuals and I_Responder is the Predictions.&amp;nbsp; Running Proc Freq with&amp;nbsp;F_Responder * I_Responder means I can create the confusion matrix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All good and great stuff!&lt;/P&gt;</description>
    <pubDate>Thu, 20 Aug 2020 13:46:27 GMT</pubDate>
    <dc:creator>Lobbie</dc:creator>
    <dc:date>2020-08-20T13:46:27Z</dc:date>
    <item>
      <title>How to interpret fields in the prediction data set?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-interpret-fields-in-the-prediction-data-set/m-p/677982#M8392</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran the following logistic regression for binary classification,&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
proc logistic 
Data = work.mdl_base_train_trnf 
outmodel=work.mymodel 
outest=work.mdl_betas 
descending namelen=32;
class &amp;amp;class_var. / param=ref;
model responder = &amp;amp;class_var. &amp;amp;num_var. / lackfit ctable pprob=0.5;
score data=work.mdl_base_train_trnf fitstat out=work.trainpred outroc=work.troc;
score data=work.mdl_base_validate_trnf fitstat out=work.validpred outroc=work.vroc;
score data=work.mdl_base_osd_trnf fitstat out=work.osdpred outroc=work.oroc;
roc;
run;
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the output&amp;nbsp;work.trainpred, there are the following fields (I have excluded other fields),&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ID	Responder	F_Responder	I_Responder	P_1	P_0
1	1	1	1	0.665672289	0.334327711
2	1	1	1	0.997408099	0.002591901
3	1	1	1	0.855185865	0.144814135
4	0	0	0	0.000237562	0.999762438
5	0	0	0	0.000191220	0.999808780
6	1	1	1	0.857405743	0.142594257
7	1	1	1	0.987851783	0.012148217&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;What do the fields&amp;nbsp;F_Responder, I_Responder, P_1 and P_0 mean?&amp;nbsp; If I want to know what did the model predict i.e. 1 or 0 and what are the probabilities, which fields do I use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lobbie&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 08:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-interpret-fields-in-the-prediction-data-set/m-p/677982#M8392</guid>
      <dc:creator>Lobbie</dc:creator>
      <dc:date>2020-08-20T08:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to interpret fields in the prediction data set?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-interpret-fields-in-the-prediction-data-set/m-p/678050#M8393</link>
      <description>"What do the fields F_Responder, I_Responder, P_1 and P_0 mean? "&lt;BR /&gt;&lt;BR /&gt; F_Responder, I_Responder should be CLASS variable in " &amp;amp;class_var.",&lt;BR /&gt;P_1 stands for predict probability of  "responder=1" . Therefore, P_1 + P_0 =1</description>
      <pubDate>Thu, 20 Aug 2020 11:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-interpret-fields-in-the-prediction-data-set/m-p/678050#M8393</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-08-20T11:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to interpret fields in the prediction data set?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-interpret-fields-in-the-prediction-data-set/m-p/678092#M8394</link>
      <description>&lt;P&gt;Just expanding the answer a little more--&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I_&lt;EM&gt;target-name&lt;/EM&gt;&lt;/STRONG&gt; and &lt;STRONG&gt;F_&lt;EM&gt;target-name&lt;/EM&gt;&lt;/STRONG&gt; are automatically created classification variables. &lt;STRONG&gt;I_&lt;/STRONG&gt; is for "Into" which means that, given a classification cutoff of .5 by default, this column contains the predicted class level of the target variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your target is &lt;STRONG&gt;RESPONDER&lt;/STRONG&gt;, so &lt;STRONG&gt;I_RESPONDER&lt;/STRONG&gt; is the level of &lt;STRONG&gt;RESPONDER&lt;/STRONG&gt; that the observation is classified into, based on the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know from your output that&lt;STRONG&gt; RESPONDER&lt;/STRONG&gt; is coded as 0 and 1, and I am guessing that 1 is the event level. Look at your&lt;STRONG&gt; P_1&lt;/STRONG&gt; values- that is the predicted probability that an observation is a 1. All the cases where&lt;STRONG&gt; P_1&lt;/STRONG&gt; &amp;gt;.5 are &lt;STRONG&gt;I_RESPONDER&lt;/STRONG&gt;=1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;F_&lt;/STRONG&gt; stands for "From" and when &lt;STRONG&gt;RESPONDER&lt;/STRONG&gt; is coded the way you have it, &lt;STRONG&gt;F_RESPONDER&lt;/STRONG&gt; matches the actual variable values of &lt;STRONG&gt;RESPONDER&lt;/STRONG&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;Cat&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 13:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-interpret-fields-in-the-prediction-data-set/m-p/678092#M8394</guid>
      <dc:creator>CatTruxillo</dc:creator>
      <dc:date>2020-08-20T13:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to interpret fields in the prediction data set?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-interpret-fields-in-the-prediction-data-set/m-p/678097#M8395</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/20964"&gt;@CatTruxillo&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;, thank you both very much for your answers, and Cat's answer is most comprehensive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did a check earlier and found that F_Responder is the Actuals and I_Responder is the Predictions.&amp;nbsp; Running Proc Freq with&amp;nbsp;F_Responder * I_Responder means I can create the confusion matrix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All good and great stuff!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 13:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-interpret-fields-in-the-prediction-data-set/m-p/678097#M8395</guid>
      <dc:creator>Lobbie</dc:creator>
      <dc:date>2020-08-20T13:46:27Z</dc:date>
    </item>
  </channel>
</rss>

