Hello Everyone!
I am generating a forest plot to present the results, odds ratios and 95% CIs, of many different logistic models. I am using proc sgpanel to make a lattice of the multiple plots. I would like like to have all of the vertical axes be the same for consistency, however some of the 95% CIs are quite large (up to a value of 20). If I allow a max value of 20 for the axis then most of the other plots look squished. Is there a good to keep the axis reasonably small and consistent? Is there a way in the syntax to have a 'broken line' so that I don't have to show the plot lines extend all the way up to 20 for example? I've attached an example plot of what i have thus far. Thank you for any help!
I don't believe it is possible to "continue" a confidence interval across an axis break. An alternative is to use a logarithmic axis for the odds ratios. See the article "Odds ratio plots with a logarithmic scale in SAS", which includes code snippets and a discussion of the pros and cons of log axes. The article shows PROC SGPLOT, but the COLAXIS statement in PROC SGPANEL also supports the TYPE=LOG option.
Great thank you, I'll check that out!
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.