<?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: Weight and proc logistic in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Weight-and-proc-logistic/m-p/357421#M18765</link>
    <description>&lt;P&gt;Any observation that has weight=0 is excluded from the model and is not used in the fitting. &amp;nbsp;If you use an output statement such as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;output out=out prob=prob resdev=resdev xbeta=xbeta;&lt;/P&gt;
&lt;P&gt;then some statistics (such as PROB and XBETA) will be present for all observations, regardless of the weight value.&lt;/P&gt;
&lt;P&gt;However, residuals (such as RESDEV), which depend on having a response value, will have missing values when weight=0 because those&amp;nbsp;responses are not part of the data that were used to fit the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ROC curve is composed of the points for which weight is NOT zero. &amp;nbsp;You can use the OUTROC= option on the MODEL statement to see the points used in the ROC curve.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2017 11:23:48 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-05-10T11:23:48Z</dc:date>
    <item>
      <title>Weight and proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Weight-and-proc-logistic/m-p/357414#M18764</link>
      <description>&lt;PRE&gt;ods graphics on;
proc logistic data=sample outmodel = model_output plots(only)=roc;	
	model target(event = "1") = var1--var20;
	weight w;
run;
ods graphics off;&lt;/PRE&gt;&lt;P&gt;where w = 1 or 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello, if I run the above code, I'm hoping I'll fit a model based on the data where my weight variable is 1 and the output statistics will be where my weight variable is 0?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will the roc plot include all my data or just where w = 1?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 10:08:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Weight-and-proc-logistic/m-p/357414#M18764</guid>
      <dc:creator>Rhys</dc:creator>
      <dc:date>2017-05-10T10:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Weight and proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Weight-and-proc-logistic/m-p/357421#M18765</link>
      <description>&lt;P&gt;Any observation that has weight=0 is excluded from the model and is not used in the fitting. &amp;nbsp;If you use an output statement such as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;output out=out prob=prob resdev=resdev xbeta=xbeta;&lt;/P&gt;
&lt;P&gt;then some statistics (such as PROB and XBETA) will be present for all observations, regardless of the weight value.&lt;/P&gt;
&lt;P&gt;However, residuals (such as RESDEV), which depend on having a response value, will have missing values when weight=0 because those&amp;nbsp;responses are not part of the data that were used to fit the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ROC curve is composed of the points for which weight is NOT zero. &amp;nbsp;You can use the OUTROC= option on the MODEL statement to see the points used in the ROC curve.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 11:23:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Weight-and-proc-logistic/m-p/357421#M18765</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-05-10T11:23:48Z</dc:date>
    </item>
  </channel>
</rss>

