BookmarkSubscribeRSS Feed
Lijuu
Obsidian | Level 7

Hello, Dears!

 

I'm trying to invoke a macro from my code but I keep getting this error:

 

WARNING: Apparent invocation of macro TEST not resolved. 

ERROR 180-322: The statement is not valid or it is used out of proper order.

 

here is the code that I used. 

 

 

LIBNAME Nmonia "D:\Lecture\research\Pnuemonia";
%MVIntegration(reflib='D:\Lecture\research\Pnuemonia');
%GMM(ds="D:\Lecture\research\Pnuemonia",
file= Pnemonia,
reflib="D:\Lecture\research\Pnuemonia",
timeVar=time,
outVar=response,
predVar=prd imm brsf trtype weather vom resid cough famhis sex age weight, 
idVar=ID,
alpha=0.05);

 

please help me if you have any clue to model time-dependent covariates in longitudinal analysis when the response variable is count.

 

Thank you.

3 REPLIES 3
Kurt_Bremser
Super User

There's no call of %test in your code as posted, so you're either showing us the wrong code, or the call is in one of the two macros you called.

Who created the macros?

Lijuu
Obsidian | Level 7

Dear 

Here is the material where I got the macro code (page 3).

https://pdfs.semanticscholar.org/9b0f/0d0c88cdc9d67d7111ddb8f8cde01fda1538.pdf

 

Thank you.

PaigeMiller
Diamond | Level 26

There's no %TEST macro in the link you provided either.

 

So please show us the code that calls %TEST, because that is where the error is happening.

--
Paige Miller

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1324 views
  • 0 likes
  • 3 in conversation