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 .

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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
  • 1469 views
  • 0 likes
  • 2 in conversation