SAS 9.4 TS LEVEL 1M3
Hello,I am having difficulty with outest statement and reference to new (?) dataset koko. Please see error message below. I think it should output the cov matrix of the parameter estimates? How to do? Could it be a semicolon or statement placement problem?
Option OUTEST belongs in the proc nlin statement.
proc NLIN data = eight
BEST= 10
MAXITER= 100
METHOD= Gauss
CONVERGE=1.0E-6
LIST
ALPHA = 0.10
OUTEST = KOKO(where = (_TYPE_ = "COVB"));
Option OUTEST belongs in the proc nlin statement.
proc NLIN data = eight
BEST= 10
MAXITER= 100
METHOD= Gauss
CONVERGE=1.0E-6
LIST
ALPHA = 0.10
OUTEST = KOKO(where = (_TYPE_ = "COVB"));
@MaryA_Marion wrote:
Hello,
thank you for your reply. There are two problems.
1. koko does not exist
OUTEST creates an output set. If you use the name of an existing data set the procedure will overwrite the existing set.
I don't think multiple parameter statements are allowed but you can list starting parameter values in a separate dataset. This should work:
title2 "Non-Linear Regression y ~ X";
data parameters;
parameter = "beta1"; estimate=0.05; output;
parameter = "beta2"; estimate=4; output;
parameter = "beta2"; estimate=0.53261; output;
parameter = "beta1";
do estimate = 0.753362 to 1.0 by 0.01;
output;
end;
do estimate = 0.5 to 2.0 by 0.1;
output;
end;
run;
proc NLIN data = eight
BEST = 10
MAXITER = 100
METHOD = Gauss
CONVERGE=1.0E-6
LIST
ALPHA = 0.10
OUTEST = KOKO(where = (_TYPE_ = "COVB"));
parameters / pdata=parameters;
model y = Beta1 * exp(Beta2 * x);
output
out = eightOut
p = y_hat
r = residual
stdr = SE_Resid
LCLM = LCL_Mean
UCLM = UCL_Mean ;
run; quit;
title;
(untested)
Your approach of using a dataset for the parms was clever. However I did not feel comfortable with the output from SAS. I was not completely sure which set of parameters I was using. I am doing them one at a time now (3 runs of proc nlin).
As for koko, I have a SAS-win10 OS problem sometimes. After many tries I finally got koko to print out. proc nlin syntax is very sensitive.
Thank you for replying.
Mary
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.