<?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: Error running NLMeans macro in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983479#M49248</link>
    <description>&lt;P&gt;I think the problem relates to your use of a DOMAIN statement in SURVEYLOGISTIC. See "BY Group or Domain Processing" in the Details section of the &lt;A href="http://support.sas.com/kb/62362" target="_self"&gt;NLMeans macro documentation&lt;/A&gt;&amp;nbsp;then see the example in the Results tab that shows how to use NLMeans with a domain analysis.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Feb 2026 23:01:24 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2026-02-13T23:01:24Z</dc:date>
    <item>
      <title>Error running NLMeans macro</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983435#M49238</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm analyzing MEPS data and want to look at adjusted prevalence ratios resulting from PROC SURVEYLOGISTIC models. I've downloaded and run NLMeans and NLEst macros. This is the code I'm trying (location, exposure1, exposure2, and dependentvariable are placeholders for actual names).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%include "C:\location\nlmeans.sas" ;&lt;BR /&gt;%include "C:\location\nlest.sas" ;&lt;/P&gt;&lt;P&gt;proc surveylogistic data= MEPS;&lt;BR /&gt;strata VARSTR;&lt;BR /&gt;cluster VARPSU;&lt;BR /&gt;weight PERWT21F;&lt;BR /&gt;domain substudy ;&lt;BR /&gt;class exposure1 exposure2 / param=glm ref=first;;&lt;BR /&gt;model dependentvariable (desc) = exposure1 exposure2 ;&lt;BR /&gt;lsmeans exposure1 / e ilink;&lt;BR /&gt;ods output coef=coeffs;&lt;BR /&gt;store out=ques;&lt;BR /&gt;run;&lt;BR /&gt;%nlmeans(instore=ques, coef=coeffs, link=logit, options=ratio,&lt;BR /&gt;null=1, title=Relative Risk);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message is: WARNING: Output 'coef' was not created. Make sure that the output object name, label, or path is spelled correctly. Also, verify that the appropriate procedure options are used to produce&lt;BR /&gt;the requested output object. For example, verify that the NOPRINT option is not used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not used to running macros so I expect it's a novice mistake!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jane&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 00:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983435#M49238</guid>
      <dc:creator>jkburkemiller</dc:creator>
      <dc:date>2026-02-13T00:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error running NLMeans macro</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983437#M49239</link>
      <description>&lt;P&gt;Make sure the start debugging from the first error (or unexpected result) as later errors might just be side effects of the earlier ones.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most likely the data was not appropriate for the analysis so the output you wanted was not created.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure to turn on the MPRINT option before calling the macro so you can see in the SAS log what actual SAS code the macro was trying to run.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 00:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983437#M49239</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-02-13T00:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error running NLMeans macro</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983440#M49240</link>
      <description>&lt;P&gt;Firstly using ODS TRACE to check whether&amp;nbsp; the &lt;SPAN&gt;&amp;nbsp;output object name&lt;/SPAN&gt; contains "COEF" or not.&lt;/P&gt;
&lt;P&gt;You need to use "&lt;STRONG&gt;lsmeans&lt;/STRONG&gt;&lt;SPAN&gt;" to get "COEF" object.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Here is an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;ods trace on;&lt;/STRONG&gt;
proc logistic data=sashelp.heart(obs=1000);
class sex bp_status/ param=glm;
model status=sex bp_status weight height;
&lt;STRONG&gt;lsmeans sex / e ilink;&lt;/STRONG&gt;
 ods output coef=coeffs;
        store out=ques;
run;
&lt;STRONG&gt;ods trace off;&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1770965131480.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113166iDBAF9CAA65B967D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1770965131480.png" alt="Ksharp_0-1770965131480.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And better to post your question at Stat Forum:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 06:48:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983440#M49240</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-02-13T06:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error running NLMeans macro</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983449#M49241</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/480430"&gt;@jkburkemiller&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The warning message is from the ODS OUTPUT statement in your PROC SURVEYLOGISTIC step, so you can focus on this step. It cannot be caused by the subsequent %NLMEANS macro call. Of course, output 'coef' not being created means that the NLMEANS macro will either issue the error message&lt;/P&gt;
&lt;PRE&gt;ERROR: Required COEF= data set not specified or not found.&lt;/PRE&gt;
&lt;P&gt;or use an outdated dataset COEFFS if one exists.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To find out why the LSMEANS statement (via ODS OUTPUT) does not create the COEFFS dataset, you should first check the log (as &lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159" target="_blank" rel="noopener"&gt;Tom&lt;/A&gt; has already recommended) for preceding error messages such as&lt;/P&gt;
&lt;PRE&gt;ERROR: There are no valid observations.
&lt;/PRE&gt;
&lt;P&gt;and look at the values of the relevant variables in a couple of observations. There is a good chance that this will clarify the issue. Otherwise, you may want to simplify the PROC SURVEYLOGISTIC step temporarily, e.g., comment out the CLUSTER statement or omit variable EXPOSURE2 from the CLASS and MODEL statements, and see if the warning still occurs.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 12:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983449#M49241</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2026-02-13T12:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error running NLMeans macro</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983463#M49242</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;The log indicates that output was added, including for coef and lsmeans but then the error happens "ERROR: File WORK.EST.DATA does not exist.":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The SURVEYLOGISTIC procedure generated the model item store WORK.QUES.&lt;BR /&gt;NOTE: The data set WORK.COEFFS has 24 observations and 10 variables.&lt;BR /&gt;NOTE: PROCEDURE SURVEYLOGISTIC used (Total process time):&lt;BR /&gt;real time 5.29 seconds&lt;BR /&gt;cpu time 3.48 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1882 ods trace off;&lt;BR /&gt;1883 %nlmeans(instore=ques, coef=coeffs, link=logit, options=ratio,&lt;BR /&gt;1884 null=1, title=Relative Risk);&lt;BR /&gt;MPRINT(NLMEANS): options nonotes nomprint nomlogic&lt;BR /&gt;ERROR: File WORK.EST.DATA does not exist.&lt;BR /&gt;WARNING: The data set WORK.EST1 may be incomplete. When this step was stopped there were 0&lt;BR /&gt;observations and 0 variables.&lt;BR /&gt;NOTE: The data set EST1 has been created for estimate set 1 in COEF.&lt;BR /&gt;ERROR: File WORK.EST.DATA does not exist.&lt;BR /&gt;WARNING: The data set WORK.EST2 may be incomplete. When this step was stopped there were 0&lt;BR /&gt;observations and 0 variables.&lt;BR /&gt;NOTE: The data set EST2 has been created for estimate set 2 in COEF.&lt;BR /&gt;NOTE: The NLMEANS macro used 1.48 seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 17:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983463#M49242</guid>
      <dc:creator>jkburkemiller</dc:creator>
      <dc:date>2026-02-13T17:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error running NLMeans macro</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983473#M49243</link>
      <description>&lt;P&gt;I moved the whole thread to the stat procs community.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 21:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983473#M49243</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2026-02-13T21:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error running NLMeans macro</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983478#M49247</link>
      <description>&lt;P&gt;So is the error about coef in PROC SURVEYLOGISTIC or about est1 in the NLMEANS macro?&lt;/P&gt;
&lt;P&gt;Make sure you are running the most recent version of the macro.&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 22:51:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983478#M49247</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2026-02-13T22:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error running NLMeans macro</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983479#M49248</link>
      <description>&lt;P&gt;I think the problem relates to your use of a DOMAIN statement in SURVEYLOGISTIC. See "BY Group or Domain Processing" in the Details section of the &lt;A href="http://support.sas.com/kb/62362" target="_self"&gt;NLMeans macro documentation&lt;/A&gt;&amp;nbsp;then see the example in the Results tab that shows how to use NLMeans with a domain analysis.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 23:01:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983479#M49248</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2026-02-13T23:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error running NLMeans macro</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983482#M49250</link>
      <description>As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; indicated, check &lt;BR /&gt;EXAMPLE 5: BY group processing, domain analysis, analysis of imputed data, and using where=</description>
      <pubDate>Sat, 14 Feb 2026 02:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983482#M49250</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-02-14T02:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error running NLMeans macro</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983484#M49252</link>
      <description>&lt;P&gt;Specifically the part labeled "Domain processing" which uses the RunBY macro in addition.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Feb 2026 03:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Error-running-NLMeans-macro/m-p/983484#M49252</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2026-02-14T03:10:24Z</dc:date>
    </item>
  </channel>
</rss>

