BookmarkSubscribeRSS Feed
Mohsen
Fluorite | Level 6

Hi All,

 

I am running the following SAS Macro %GLIMMIX and get the error mesage in the log file. Any Help to address it is apprecieated:

 

SAS CODE:

 

%INCLUDE "C:\Users\Mohsen\Desktop\PracticumCourse\5-Good\HPGLIMMIX\HPGLIMMIX.sas" ;


title "Using HPGLIMMIX macro";
%hpglimmix(data=library.projectfulldata,
stmts=%str(
class id age;
model stopcorrect= age/s;
random int/subject=id;
),
error=binomial, maxit=50,
link=logit,
);

 

SAS LOG FILE:

 

options mlogic symbolgen mprint;
 %INCLUDE "C:\Users\Mohsen\Desktop\PracticumCourse\5-Good\HPGLIMMIX\HPGLIMMIX.sas" ;

 title "Using HPGLIMMIX macro";
 %hpglimmix(data=library.projectfulldata,
MLOGIC(HPGLIMMIX): Beginning execution.
stmts=%str(
class id age;
model stopcorrect= age/s;
 random int/subject=id;
13867 ),
13868 error=binomial, maxit=50,
13869 link=logit,
);
ERROR: All positional parameters must precede keyword parameters.

2 REPLIES 2
Astounding
PROC Star

The error is caused by the final comma:

 

link=logit,)

 

This makes it look like you meant to add a value for another macro parameter (giving it a null value).  Just get rid of the comma and you should be fine.

Mohsen
Fluorite | Level 6

Thank you very much !   It Worked .

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
What is ANOVA?

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.

Discussion stats
  • 2 replies
  • 1374 views
  • 0 likes
  • 2 in conversation