BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ammarhm
Lapis Lazuli | Level 10

Hi

I have been using the excellent post by Sanjay to create Forest plots with SAS:

http://blogs.sas.com/content/graphicallyspeaking/2013/01/06/forest-plot-with-sas-9-3/#comment-15665

However, I wonder if it is possible to improve this further, can anyone please suggest a way to make the size of the square in the middle of the lines proportional to the subgroup?

Best regards

1 ACCEPTED SOLUTION

Accepted Solutions
Jay54
Meteorite | Level 14

See a previous article on Forest Plots that sizes the marker based on weight.

http://blogs.sas.com/content/graphicallyspeaking/2012/02/01/forest-plot-using-sgplot-procedure/

The associated code uses two HighLow plots to draw the error bars and the markers.  Prashant has pointed out an issue with the computation of the Q1, Q3 values, but other than that, this idea should work.

View solution in original post

2 REPLIES 2
Jay54
Meteorite | Level 14

See a previous article on Forest Plots that sizes the marker based on weight.

http://blogs.sas.com/content/graphicallyspeaking/2012/02/01/forest-plot-using-sgplot-procedure/

The associated code uses two HighLow plots to draw the error bars and the markers.  Prashant has pointed out an issue with the computation of the Q1, Q3 values, but other than that, this idea should work.

ammarhm
Lapis Lazuli | Level 10

Thank you Sanjay, exactly what I needed

Best regards

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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 2 replies
  • 1374 views
  • 0 likes
  • 2 in conversation