Hi, I tried to fit some tree taper equations by using nonlinear mixed effect modeling and I want to use %nlinmix sas macro,
but I have some sas errors, my sas code:
%nlinmix(Data=hizlidestek,
response=z,
subject=ano,
Model=%str(
S=k*((d**2)*(1+((((1-(y))**((a+u1)))-((1-(t))**((a+u1))))/(1-((1-(t))**((a+u1)))))));
),
parms=%str(a=88.0063
b=8.5025
c=0.7048 o=2.3379),
random=u1,
Expand=0,
)
Run;
first error code:
WARNING: Apparent invocation of macro NLINMIX not resolved.
2434 run;
2435
2436 %nlinmix(Data=hizlidestek,
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
what is the wrong this sas macro code, why can this sas code not study, is there any idea for this problem,
very much thanks to answers....
Dr. İlker ERCANLI
Hi:
Did you follow the instructions in this note? 25032 - %NLINMIX macro to fit nonlinear mixed models? According to the instructions, you have to 1) download the .SAS program and store it in a location on your system or server; 2) use a %INC statement to include the .SAS program so it will be compiled and stored in the WORK.SASMACR catalog; 3) then invoke the macro using the %NLINMIX invocation. If you log off between #2 and #3, then you will not have to download again, but you will have to recompile the macro code before you can run it. Your error message indicates that the macro code was not found. If you followed the instructions in the Tech Support note and are still having issues, then you should contact Tech Support for more help.
cynthia
Dr. Ercanli,
Have you considered using PROC NLMIXED, rather than the nlinmix macro? Many of the issues with the macro (convergence, model expression) have been resolved in NLMIXED.
Steve Denham
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.