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-2024.png

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.

 

Register now!

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