<?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. ERROR: Unable to compute derivatives for the Newton-Raphson step in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-ERROR-Unable-to-compute-derivatives-for-the-Newton/m-p/511405#M26177</link>
    <description>&lt;P&gt;Your weights are badly scaled. The largest weight is about 1E5 and the smallest nonzero weight is 1. When the procedure computes the crossproduct matrix, it needs to compute X`WX, where W is the diagonal matrix of weights. This leads to uneven scaling&amp;nbsp;when estimating the parameters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_logistic_syntax37.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;use the NORMALIZE option to scale the weight variable.&amp;nbsp;&lt;/A&gt;Just change&amp;nbsp;the WEIGHT statement to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;weight pop / normalize;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Nov 2018 15:17:54 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2018-11-08T15:17:54Z</dc:date>
    <item>
      <title>Proc logistic. ERROR: Unable to compute derivatives for the Newton-Raphson step</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-ERROR-Unable-to-compute-derivatives-for-the-Newton/m-p/511316#M26172</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have data set including population size by cohort, sex, region, and education levels (ordered from 0 to 5). I want to perform an ordered logit regression in order to estimate parameters that I can use to&amp;nbsp;predict future cohorts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code:&lt;/P&gt;
&lt;P&gt;proc sort data=work.edu; by sex; run;&lt;BR /&gt;proc logistic data=work.edu ;&lt;BR /&gt;class region / param = ref;&lt;BR /&gt;model edu_order(descending) = region cohort / unequalslopes;&lt;BR /&gt;weight pop;&lt;BR /&gt;by sex;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the code, I have an output, but parameters look wrong and I get this error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Unable to compute derivatives for the Newton-Raphson step. You may want to use the INEST=&lt;BR /&gt; option to supply initial values for the parameter estimates, or try using Fisher's scoring&lt;BR /&gt; (TECHNIQUE=FISHER option)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the TECHNIQUE=FISHER, but it doesn't work with &lt;SPAN&gt;unequalslopes. I have no idea how to use the INEST= option and the documentation is not very clear.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My dataset:&amp;nbsp;&lt;A href="https://www.dropbox.com/s/dstvlbm0ooesay9/edu.sas7bdat?dl=0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.dropbox.com/s/dstvlbm0ooesay9/edu.sas7bdat?dl=0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 08:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-ERROR-Unable-to-compute-derivatives-for-the-Newton/m-p/511316#M26172</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2018-11-08T08:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistic. ERROR: Unable to compute derivatives for the Newton-Raphson step</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-ERROR-Unable-to-compute-derivatives-for-the-Newton/m-p/511387#M26175</link>
      <description>&lt;P&gt;Your code treats COHORT as a continuous variable. Was that your intention? Otherwise, add COHORT to the CLASS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 14:20:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-ERROR-Unable-to-compute-derivatives-for-the-Newton/m-p/511387#M26175</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-11-08T14:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistic. ERROR: Unable to compute derivatives for the Newton-Raphson step</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-ERROR-Unable-to-compute-derivatives-for-the-Newton/m-p/511388#M26176</link>
      <description>&lt;P&gt;Cohort need to be continuous, because I want a logit trend to predict the outcome of future cohort.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 14:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-ERROR-Unable-to-compute-derivatives-for-the-Newton/m-p/511388#M26176</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2018-11-08T14:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistic. ERROR: Unable to compute derivatives for the Newton-Raphson step</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-ERROR-Unable-to-compute-derivatives-for-the-Newton/m-p/511405#M26177</link>
      <description>&lt;P&gt;Your weights are badly scaled. The largest weight is about 1E5 and the smallest nonzero weight is 1. When the procedure computes the crossproduct matrix, it needs to compute X`WX, where W is the diagonal matrix of weights. This leads to uneven scaling&amp;nbsp;when estimating the parameters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_logistic_syntax37.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;use the NORMALIZE option to scale the weight variable.&amp;nbsp;&lt;/A&gt;Just change&amp;nbsp;the WEIGHT statement to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;weight pop / normalize;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 15:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-ERROR-Unable-to-compute-derivatives-for-the-Newton/m-p/511405#M26177</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-11-08T15:17:54Z</dc:date>
    </item>
  </channel>
</rss>

