<?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: Why is SAS giving me errors when I use %NLEstimate? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-is-SAS-giving-me-errors-when-I-use-NLEstimate/m-p/732215#M228165</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/297876"&gt;@SAS93&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In &lt;A href="https://support.sas.com/kb/58/775.html" target="_blank" rel="noopener"&gt;Sample 58775: Estimating nonlinear combinations of model parameters&lt;/A&gt; it says: "NOTE: Beginning in SAS® 9.4 TS1M6, this macro is available in the SAS/STAT® Autocall library as the NLEST macro and does not need to be downloaded and defined before use."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, if your SAS version is 9.4M6 or later (submit &lt;FONT face="courier new,courier"&gt;proc setinit; run;&lt;/FONT&gt; to find out), the name of the macro is NLEST, not NLESTIMATE. Otherwise, you need to download and submit the code of macro NLESTIMATE first before you can use it. The download link can be found in the "Downloads" tab of the web page linked above.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Apr 2021 13:17:05 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2021-04-08T13:17:05Z</dc:date>
    <item>
      <title>Why is SAS giving me errors when I use %NLEstimate?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-SAS-giving-me-errors-when-I-use-NLEstimate/m-p/732199#M228161</link>
      <description>&lt;P&gt;I haven't used NLEstimate before, so I'm not entirely sure how to approach fixing this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Errors:&lt;/STRONG&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;WARNING: Apparent invocation of macro NLESTIMATE not resolved.&lt;BR /&gt;387 %NLEstimate(instore=house, label=RR (female/male), f=logistic(b_p1+b_p2)/logistic(b_p1))&lt;BR /&gt;-&lt;BR /&gt;180&lt;/P&gt;
&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My code&lt;/STRONG&gt;:&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;proc SurveyLOGISTIC data=ep2015;&lt;BR /&gt;freq house_prep;&lt;BR /&gt;Cluster _PSU;&lt;BR /&gt;Stratum _STSTR;&lt;BR /&gt;Weight _llcpwt;&lt;BR /&gt;Class house_prep sex age_cat race edu income marry employ cvd asth diabete cvd physical mental / param=glm;&lt;BR /&gt;model house_prep(event="No")= sex age_cat race edu income marry employ cvd asth diabete cvd physical mental;&lt;BR /&gt;lsmeans sex / e ilink;&lt;BR /&gt;store out=house;&lt;BR /&gt;run;&lt;BR /&gt;%NLEstimate(instore=house, label=RR (female/male), f=logistic(b_p1+b_p2)/logistic(b_p1))&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 08 Apr 2021 12:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-SAS-giving-me-errors-when-I-use-NLEstimate/m-p/732199#M228161</guid>
      <dc:creator>SAS93</dc:creator>
      <dc:date>2021-04-08T12:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why is SAS giving me errors when I use %NLEstimate?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-is-SAS-giving-me-errors-when-I-use-NLEstimate/m-p/732215#M228165</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/297876"&gt;@SAS93&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In &lt;A href="https://support.sas.com/kb/58/775.html" target="_blank" rel="noopener"&gt;Sample 58775: Estimating nonlinear combinations of model parameters&lt;/A&gt; it says: "NOTE: Beginning in SAS® 9.4 TS1M6, this macro is available in the SAS/STAT® Autocall library as the NLEST macro and does not need to be downloaded and defined before use."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, if your SAS version is 9.4M6 or later (submit &lt;FONT face="courier new,courier"&gt;proc setinit; run;&lt;/FONT&gt; to find out), the name of the macro is NLEST, not NLESTIMATE. Otherwise, you need to download and submit the code of macro NLESTIMATE first before you can use it. The download link can be found in the "Downloads" tab of the web page linked above.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 13:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-is-SAS-giving-me-errors-when-I-use-NLEstimate/m-p/732215#M228165</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-04-08T13:17:05Z</dc:date>
    </item>
  </channel>
</rss>

