<?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 does SAS calculate the value of the linear predictor in a weighted logistic regression? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-does-SAS-calculate-the-value-of-the-linear-predictor-in-a/m-p/623582#M19956</link>
    <description>&lt;P&gt;You have trailing periods in your posted&amp;nbsp; excel result, suggesting you didn't bother to post more digits.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just because SAS printed the number you posted (-1.118603402) doesn't mean that is the exact value SAS generated.&amp;nbsp; It only means that the printed coefficient was subject to a specific format.&amp;nbsp;&amp;nbsp; If your proc logistic also saved the estimate in a data set,&amp;nbsp; read the dataset and print it with a longer format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's likely&amp;nbsp; rounding, yes, but not a rounding ERROR.&amp;nbsp; It's just a display/printing convention that you can investigate.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2020 15:23:13 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2020-02-10T15:23:13Z</dc:date>
    <item>
      <title>How does SAS calculate the value of the linear predictor in a weighted logistic regression?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-does-SAS-calculate-the-value-of-the-linear-predictor-in-a/m-p/623572#M19952</link>
      <description>&lt;P&gt;I am using a weighted logistic regression of the form:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;rsubmit;&lt;BR /&gt;proc logistic data=dataset_1 outest=stepwise_ot;&lt;BR /&gt;model dependent_variable(event="1") = var1 var2 var3 var4 var5 var6 var7 / selection = stepwise&lt;BR /&gt;details expb stb lackfit rsquare;&lt;BR /&gt;weight correct_weight;&lt;BR /&gt;output out=Output_1 pred=PD Xbeta=logodds p=est_response;&lt;BR /&gt;store output_1;&lt;BR /&gt;run;&lt;BR /&gt;endrsubmit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for the first row SAS gives me a value of the linear predictor equal to&amp;nbsp;-1.118603402 while when I do the calculations in Excel through a linear relationship of the form intercept + b1*x1 + b2*x2 + ..... with the estimated coefficients I get&amp;nbsp;-1,118603402... Could this be due to a rounding error? How does SAS calculate the value of the Linear Predictor?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 14:50:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-does-SAS-calculate-the-value-of-the-linear-predictor-in-a/m-p/623572#M19952</guid>
      <dc:creator>adrfinance</dc:creator>
      <dc:date>2020-02-10T14:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: How does SAS calculate the value of the linear predictor in a weighted logistic regression?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-does-SAS-calculate-the-value-of-the-linear-predictor-in-a/m-p/623575#M19953</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/300616"&gt;@adrfinance&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;for the first row SAS gives me a value of the linear predictor equal to&amp;nbsp;-1.118603402 while when I do the calculations in Excel through a linear relationship of the form intercept + b1*x1 + b2*x2 + ..... with the estimated coefficients I get&amp;nbsp;-1,118603402... Could this be due to a rounding error? How does SAS calculate the value of the Linear Predictor?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't see a difference between the two numbers you show (except for the typographical error that one has a comma)&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 14:59:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-does-SAS-calculate-the-value-of-the-linear-predictor-in-a/m-p/623575#M19953</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-02-10T14:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: How does SAS calculate the value of the linear predictor in a weighted logistic regression?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-does-SAS-calculate-the-value-of-the-linear-predictor-in-a/m-p/623582#M19956</link>
      <description>&lt;P&gt;You have trailing periods in your posted&amp;nbsp; excel result, suggesting you didn't bother to post more digits.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just because SAS printed the number you posted (-1.118603402) doesn't mean that is the exact value SAS generated.&amp;nbsp; It only means that the printed coefficient was subject to a specific format.&amp;nbsp;&amp;nbsp; If your proc logistic also saved the estimate in a data set,&amp;nbsp; read the dataset and print it with a longer format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's likely&amp;nbsp; rounding, yes, but not a rounding ERROR.&amp;nbsp; It's just a display/printing convention that you can investigate.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 15:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-does-SAS-calculate-the-value-of-the-linear-predictor-in-a/m-p/623582#M19956</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-02-10T15:23:13Z</dc:date>
    </item>
  </channel>
</rss>

