DATA Step, Macro, Functions and more

%nlinmix error

Reply
New Contributor
Posts: 2

%nlinmix error

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

SAS Super FREQ
Posts: 8,864

Re: %nlinmix error

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

Respected Advisor
Posts: 2,655

Re: %nlinmix error

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

Ask a Question
Discussion stats
  • 2 replies
  • 311 views
  • 0 likes
  • 3 in conversation