Dear all,
I know several variants of the following question have been asked before. However, I am still unable to incorporate the advice to my problem. Hence re-posting. I am running NLPNRA in a loop and would like to store the estimates and gradients in each iteration in a SAS dataset. The code that is being looped looks somewhat like this -
ods output ParameterEstimates = mle;
proc iml;
[OBJECTIVE FUNCTION]
quit;
When I run this code 1000 times in a loop, I see 1,000 HTML files created in my SAS Temporary Files directory. This chokes up my workspace and the subsequent iterations tend to take longer. My question is - how do I recover the file "mle" dataset in the code and delete the html file generated in the temporary files directory?
I tried the following and the HTML files continue to be generated in all the attempts:
Any suggestions would be great.
Thank you,
Rakesh
Are you sure you need ODS OUTPUT at all? The NLPNRA subroutine returns the parameter estimates. I suspect you can follow the example in the article, "Solve many optimization problems."
If that doesn't answer your question, explain what you are doing, and show your program. Specifically, the loop and the call to NLPNRA.
Are you sure you need ODS OUTPUT at all? The NLPNRA subroutine returns the parameter estimates. I suspect you can follow the example in the article, "Solve many optimization problems."
If that doesn't answer your question, explain what you are doing, and show your program. Specifically, the loop and the call to NLPNRA.
This is exactly what I needed. Thank you, Rick!
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.