BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
jfgiraldo
Fluorite | Level 6

Hello,

 

I need the graphical outputs (in this case, meanplot and controlplot)
built by the glimmix procedure inside the by statement to have as file name
the combination of the response variable and the values ​​of each level (#byval).
For example, varY_#byval1_#byval2.png . Is this possible?.

 

Thank you

 

1 ACCEPTED SOLUTION

Accepted Solutions
jfgiraldo
Fluorite | Level 6
I managed to partially solve it like this:

ods graphics on / reset=index(1);
proc glimmix data=have plots=(meanplot (ascending cl)) ;		
by var1 var2;
ods graphics on / imagename="&variable_#byval1_#byval2_" imagefmt=png;
class x f1 f2;
&variable=x;
random f1 f2(f1); lsmeans x/cl adjust=dunnett diff = control("mycontrol") plot = controlplot;
ods output LSMeans=lsmeans_&variable
Diffs=diffs_&variable; run;
At the moment I can't differentiate meanplot from controlplot other than by the outpot index 
but for now this works for me. I close the thread. Thank you

View solution in original post

1 REPLY 1
jfgiraldo
Fluorite | Level 6
I managed to partially solve it like this:

ods graphics on / reset=index(1);
proc glimmix data=have plots=(meanplot (ascending cl)) ;		
by var1 var2;
ods graphics on / imagename="&variable_#byval1_#byval2_" imagefmt=png;
class x f1 f2;
&variable=x;
random f1 f2(f1); lsmeans x/cl adjust=dunnett diff = control("mycontrol") plot = controlplot;
ods output LSMeans=lsmeans_&variable
Diffs=diffs_&variable; run;
At the moment I can't differentiate meanplot from controlplot other than by the outpot index 
but for now this works for me. I close the thread. Thank you

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

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
  • 315 views
  • 0 likes
  • 1 in conversation