Hi All,
PROC NLIN failed to converge, I'm fitting around 500 model and this is expected. I want to have missing values where it fil to converge or just don't get this warning at all.
Take a look at the article, "Monitor convergence during simulation studies in SAS." It explains how to monitor convergence. You can use post-processing to set the predicted value to missing for models that did not converge.
Note that you cannot suppress WARNINGS, but you can use OPTIONS NONOTES to suppress the NOTEs.
It also might be worth investigating WHY these models are not converging. For example, some BY groups might have an insufficient number of valid observations (eg, only 2 data points). You can pre-process the data to exclude those situations.
To help us help you it is generally a good idea to at least include the code you are currently running. Better would be to include a LOG entry including the code an all of the messages from the log.
Where do you want to have "missing values"? This is not an obvious, at least to me, requirement.
in the estimates variables. it is still generating results in the estimate when the model didn't converge.
The variable _STATUS_ in the OUTEST= dataset tells you which estimates are final (properly converged) or not.
Please have the log attachment.
Here is the SAS code
Take a look at the article, "Monitor convergence during simulation studies in SAS." It explains how to monitor convergence. You can use post-processing to set the predicted value to missing for models that did not converge.
Note that you cannot suppress WARNINGS, but you can use OPTIONS NONOTES to suppress the NOTEs.
It also might be worth investigating WHY these models are not converging. For example, some BY groups might have an insufficient number of valid observations (eg, only 2 data points). You can pre-process the data to exclude those situations.
I know why it is not converging for some of the data because some of formula that I'm using doesn't fit all observation. I want to know which data is not coversiong so I can use the right algorithm.
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 use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.