BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
MaryA_Marion
Lapis Lazuli | Level 10
SAS CODE (it runs ok except I have two panels of influence plots -I only want the first one)
ods graphics on;
ods select ClassLevelInfo ConvergenceStatus EffectPlot GoodnessOfFit LackFitChiSq ParameterEstimates clparmPL OddsRatios OddsRatiosPL influencePlots;
proc logistic data=throat descending plot(only)=(influence effect(x=(D) sliceby=T)) alpha=.05;
class T / param=ref;
model y = D T/ scale=none aggregate lackfit clparm=PL expb influence;
run; quit;

Thanks. MM
1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

Hello @MaryA_Marion,

 

As I've just learned from the documentation of the ODS SELECT statement, you can specify quoted labels (known from output obtained with ODS TRACE ON) in requests of ODS output objects. In your example, specify "Panel 1" to restrict the influence plots to the first panel:

ods select ClassLevelInfo ... influencePlots.'Panel 1';

View solution in original post

6 REPLIES 6
FreelanceReinh
Jade | Level 19

Hello @MaryA_Marion,

 

As I've just learned from the documentation of the ODS SELECT statement, you can specify quoted labels (known from output obtained with ODS TRACE ON) in requests of ODS output objects. In your example, specify "Panel 1" to restrict the influence plots to the first panel:

ods select ClassLevelInfo ... influencePlots.'Panel 1';
Rick_SAS
SAS Super FREQ

FreelanceReinhard gave the correct answer, but it is worth mentioning that you can also match PATTERNS of strings. Learn how to select ODS tables by using wildcards and regular expressions in SAS.

MaryA_Marion
Lapis Lazuli | Level 10
This is extremely helpful. Thank you. MM
MaryA_Marion
Lapis Lazuli | Level 10
Rick,
I have found ods exclude to be more reliable; I will carefully attempt the
ods include on smaller projects. Pattern matching looks powerful. Thanks. MM
MaryA_Marion
Lapis Lazuli | Level 10
This was extremely helpful. How can I create custom panels of 2-6 plots? Thanks. MM
FreelanceReinh
Jade | Level 19

@MaryA_Marion wrote:
This was extremely helpful. How can I create custom panels of 2-6 plots? Thanks. MM

I have never done this, but I see three options:

  • Locate the ODS template used by PROC LOGISTIC for these graphs and modify a copy of it so that it includes only the plots of interest (cf. ODS Graphics Template Modification).
  • Create one or more (ODS output) datasets from the statistics underlying the plots of interest and create the custom graph using PROC SGPANEL based on these datasets.
  • If this is not a recurring task, create the graphs of the default panels separately (see the UNPACK option) and combine them as you like in a post-processing step using graphics software.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 6 replies
  • 1486 views
  • 4 likes
  • 3 in conversation