Hello to Sas community,
I would like help to get into table - like outest table - the confidence interval and standard error for the variables from proc nlin. How do you do?
I have statement like this so I am get parameter for every by variable patient. I will get the estimate for a,...,f out in parameters_out but the confidence limits I do not get. I see PROC REG has some TABLEOUT - is similar in PROC NLIN? I cannot find.
Help would be really good thank you!
proc nlin data = datafull_2016_2022 plots = fit maxiter = 200 save outest = parameters_final;
by prtcpt;
parameters a=-10 / pdata=parameters_init;
model y = a*exp(x/b) + c*exp(x/d) + e*x + f;
run;
Hello @linlin87,
Use the ODS OUTPUT statement
ods output ParameterEstimates=want;
before or in the PROC NLIN step. For each BY group and parameter, dataset WANT will contain the estimate (variable Estimate) and the confidence limits (LowerCL, UpperCL).
I think you want the OUTPUT statement to get the confidence limits. The OUTEST is different than overall parameters.
Output out=yourdatasetname <options>=<variablenames>;
I don't suggest a specific syntax because you do not indicate whether you want confidence limits of predicted values L95 and U95, LCL and UCL or of the mean L95M / U95M and LCLM/ UCLM.
Similarly there are multiple standard error options: STDI (individual predicted value) STDP (mean predicted value) STDR (standard error of residuals)
The out= dataset name would have to be different than the OUTEST name. If you want both sets of values in one dataset then you need to combine the two sets.
Thank you @ballardw for helping. I will try this but I think your suggesting get confidence and prediction interval for data? I want confidence intervals of the parameter values.
Hello @linlin87,
Use the ODS OUTPUT statement
ods output ParameterEstimates=want;
before or in the PROC NLIN step. For each BY group and parameter, dataset WANT will contain the estimate (variable Estimate) and the confidence limits (LowerCL, UpperCL).
Thank you @ballardw and @FreelanceReinh for your helping me!
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.
For SAS newbies, this video is a great way to get started. James Harroun walks through the process using SAS Studio for SAS OnDemand for Academics, but the same steps apply to any analytics project.
Find more tutorials on the SAS Users YouTube channel.