BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Dear SAS Users,
I am using proc glimmix to run a glmm on count data. My model uses a macro so when i try and insert the "plot" function into my model it wont run it as the error says its not defined in the macro. Does this mean i have to write a code within the macro for the plot or is there a simpler way where i can make SAS look outside the macro?
I have pasted the model below - it runs fine until i try adding in the terms requesting plots (in bold).
Thankyou in advance.

ods graphics on;
%include 'C:\Documents and Settings\glimmixV8.sas';
%glimmix(data=livnobees, plots=pearsonpanel,
procopt=method=reml cl, stmts=%str(
class round field transect subj;
model nobees = round dist
/ SOLUTION htype=3 ddfm=kenwardroger;
random field transect(field) ;
repeated round / subject=subj type=ar(1);),
error=poisson, link=log, maxit=40);
run;
ods html close;
ods graphics off;


ERROR: The keyword parameter PLOTS was not defined with the macro.
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
This is not an ODS or Base Reporting procedure (PRINT, REPORT, TABULATE) question.

Your best bet for help with PROC GLIMMIX and SAS Macro program problems is to contact SAS Technical Support. To send a question to Tech Support, go to http://support.sas.com/ and in the left-hand navigation pane, click on the link entitled "Submit a Problem".

cynthia

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 573 views
  • 0 likes
  • 2 in conversation