<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic forest plot in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/forest-plot/m-p/254330#M274</link>
    <description>&lt;P&gt;The following program is printng all text and numbers in unbolded font. How can I have it print everything in bold. Also, the bars are printed on the top of the symbol. Can I have the symbol printed on the top of the bar? Also, is there a way to have a "blank" line inserted in-between certain bars? Here is the data and program I am using?&lt;/P&gt;&lt;P&gt;data x;&lt;BR /&gt;input sname $15. AGM LL UL ns2 na2;&lt;BR /&gt;format AGM LL UL f5.1;&lt;BR /&gt;datalines;&lt;BR /&gt;SCOT: Males 233.1 182.9 297.1 12 12&lt;BR /&gt;SCOT: Females 241.3 189.1 307.9 11 11&lt;BR /&gt;SCOT: NHW 218.4 170.8 279.4 10 10&lt;BR /&gt;SCOT: NHB 294.1 232.8 371.5 9 9&lt;BR /&gt;SCOT: HISP 217.9 167.0 284.3 8 8&lt;BR /&gt;SCOT: OTH 226.1 174.2 293.4 7 7&lt;BR /&gt;NNAL: Males 258.0 162.1 410.7 6 6&lt;BR /&gt;NNAL: Females 360.5 226.7 573.3 5 5&lt;BR /&gt;NNAL: NHW 334.9 214.9 522.0 4 4&lt;BR /&gt;NNAL: NHB 258.5 157.0 425.5 3 3&lt;BR /&gt;NNAL: HISP 324.1 202.9 517.8 2 2&lt;BR /&gt;NNAL: OTH 308.3 189.9 500.6 1 1&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;title 'Adjusted Geometric Means with 95% Confidence Intervals';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgplot data=x noautolegend nocycleattrs;&lt;BR /&gt;refline 150 600 / axis=x;&lt;BR /&gt;scatter y=ns2 x=agm / markerattrs=graphdata2&lt;BR /&gt;(symbol=circlefilled size=15 color=black);&lt;BR /&gt;highlow y=ns2 low=ll high=ul / type=bar intervalbarwidth=.05in&lt;BR /&gt;nooutline fillattrs=graphdata1 (color=Green);&lt;BR /&gt;yaxistable sname / y=ns2 position=left location=outside&lt;BR /&gt;nolabel valuejustify=left pad=(right=0px) labelattrs=(weight=bold);&lt;BR /&gt;yaxistable agm LL UL / y=nS2 position=right location=inside&lt;BR /&gt;labelhalign=center labelattrs=(weight=bold)&lt;BR /&gt;pad=(left=20px right=10px);&lt;BR /&gt;yaxis display=none offsetmin=0.1 offsetmax=0.05 values=(1 to 12) ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ram Jain&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2016 21:00:46 GMT</pubDate>
    <dc:creator>RamJ</dc:creator>
    <dc:date>2016-03-03T21:00:46Z</dc:date>
    <item>
      <title>forest plot</title>
      <link>https://communities.sas.com/t5/SAS-Studio/forest-plot/m-p/254330#M274</link>
      <description>&lt;P&gt;The following program is printng all text and numbers in unbolded font. How can I have it print everything in bold. Also, the bars are printed on the top of the symbol. Can I have the symbol printed on the top of the bar? Also, is there a way to have a "blank" line inserted in-between certain bars? Here is the data and program I am using?&lt;/P&gt;&lt;P&gt;data x;&lt;BR /&gt;input sname $15. AGM LL UL ns2 na2;&lt;BR /&gt;format AGM LL UL f5.1;&lt;BR /&gt;datalines;&lt;BR /&gt;SCOT: Males 233.1 182.9 297.1 12 12&lt;BR /&gt;SCOT: Females 241.3 189.1 307.9 11 11&lt;BR /&gt;SCOT: NHW 218.4 170.8 279.4 10 10&lt;BR /&gt;SCOT: NHB 294.1 232.8 371.5 9 9&lt;BR /&gt;SCOT: HISP 217.9 167.0 284.3 8 8&lt;BR /&gt;SCOT: OTH 226.1 174.2 293.4 7 7&lt;BR /&gt;NNAL: Males 258.0 162.1 410.7 6 6&lt;BR /&gt;NNAL: Females 360.5 226.7 573.3 5 5&lt;BR /&gt;NNAL: NHW 334.9 214.9 522.0 4 4&lt;BR /&gt;NNAL: NHB 258.5 157.0 425.5 3 3&lt;BR /&gt;NNAL: HISP 324.1 202.9 517.8 2 2&lt;BR /&gt;NNAL: OTH 308.3 189.9 500.6 1 1&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;title 'Adjusted Geometric Means with 95% Confidence Intervals';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgplot data=x noautolegend nocycleattrs;&lt;BR /&gt;refline 150 600 / axis=x;&lt;BR /&gt;scatter y=ns2 x=agm / markerattrs=graphdata2&lt;BR /&gt;(symbol=circlefilled size=15 color=black);&lt;BR /&gt;highlow y=ns2 low=ll high=ul / type=bar intervalbarwidth=.05in&lt;BR /&gt;nooutline fillattrs=graphdata1 (color=Green);&lt;BR /&gt;yaxistable sname / y=ns2 position=left location=outside&lt;BR /&gt;nolabel valuejustify=left pad=(right=0px) labelattrs=(weight=bold);&lt;BR /&gt;yaxistable agm LL UL / y=nS2 position=right location=inside&lt;BR /&gt;labelhalign=center labelattrs=(weight=bold)&lt;BR /&gt;pad=(left=20px right=10px);&lt;BR /&gt;yaxis display=none offsetmin=0.1 offsetmax=0.05 values=(1 to 12) ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ram Jain&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 21:00:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/forest-plot/m-p/254330#M274</guid>
      <dc:creator>RamJ</dc:creator>
      <dc:date>2016-03-03T21:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: forest plot</title>
      <link>https://communities.sas.com/t5/SAS-Studio/forest-plot/m-p/254355#M275</link>
      <description>&lt;P&gt;Ram,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes in life "size matters", but in ODS Graphics "order matters"!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following code has been updated to:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;split sname into 2 parts, so that your input statement reads the data you expect&lt;/LI&gt;
&lt;LI&gt;reorder scatter after highlow, so the scatter is plotted after highlow (and on top of it!)&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;data x;
    length sname1 sname2 $7. sname $15.;
    input sname1 sname2 AGM LL UL ns2 na2;
    format AGM LL UL f5.1;
    sname = strip(sname1) || ' ' || strip(sname2);
    datalines;
SCOT: Males 233.1 182.9 297.1 12 12
SCOT: Females 241.3 189.1 307.9 11 11
SCOT: NHW 218.4 170.8 279.4 10 10
SCOT: NHB 294.1 232.8 371.5 9 9
SCOT: HISP 217.9 167.0 284.3 8 8
SCOT: OTH 226.1 174.2 293.4 7 7
NNAL: Males 258.0 162.1 410.7 6 6
NNAL: Females 360.5 226.7 573.3 5 5
NNAL: NHW 334.9 214.9 522.0 4 4
NNAL: NHB 258.5 157.0 425.5 3 3
NNAL: HISP 324.1 202.9 517.8 2 2
NNAL: OTH 308.3 189.9 500.6 1 1
;
run;

title 'Adjusted Geometric Means with 95% Confidence Intervals';

proc sgplot data=x noautolegend nocycleattrs;
    refline 150 600 / axis=x;
    highlow y=ns2 low=ll high=ul / type=bar intervalbarwidth=.05in
        nooutline fillattrs=graphdata1 (color=Green);
    scatter y=ns2 x=agm / markerattrs=graphdata2
        (symbol=circlefilled size=15 color=black);
    yaxistable sname / y=ns2 position=left location=outside
        nolabel valuejustify=left pad=(right=0px) labelattrs=(weight=bold);
    yaxistable agm LL UL / y=nS2 position=right location=inside
        labelhalign=center labelattrs=(weight=bold)
        pad=(left=20px right=10px);
    yaxis display=none offsetmin=0.1 offsetmax=0.05 values=(1 to 12);
run;&lt;/PRE&gt;
&lt;P&gt;Enjoy!................Phil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS. Look for "Philip R Holland" on Amazon - you may enjoy that too! &amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 22:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/forest-plot/m-p/254355#M275</guid>
      <dc:creator>hollandnumerics</dc:creator>
      <dc:date>2016-03-03T22:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: forest plot</title>
      <link>https://communities.sas.com/t5/SAS-Studio/forest-plot/m-p/254381#M276</link>
      <description>Thank you so much but it still prints text on the Y-axis like SCOT: Males&lt;BR /&gt;and all numbers like 226.1 etc in unbolded font. Is there a way to print&lt;BR /&gt;these also in bold? Also, is there a way to insert blank lines, for&lt;BR /&gt;example, after SCOT: OTH.&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Thu, 03 Mar 2016 23:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/forest-plot/m-p/254381#M276</guid>
      <dc:creator>RamJ</dc:creator>
      <dc:date>2016-03-03T23:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: forest plot</title>
      <link>https://communities.sas.com/t5/SAS-Studio/forest-plot/m-p/254429#M277</link>
      <description>&lt;P&gt;Ram,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A few amendments marked in red to match your specification:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data x;
    &lt;FONT color="#FF0000"&gt;infile datalines truncover;&lt;/FONT&gt;
    length sname1 sname2 $7. sname $15.;
    input sname1 sname2 AGM LL UL ns2 na2;
    format AGM LL UL f5.1;
    &lt;FONT color="#FF0000"&gt;if sname1 ne '-' then&lt;/FONT&gt; sname = strip(sname1) || ' ' || strip(sname2);
    datalines;
SCOT: Males 233.1 182.9 297.1 &lt;FONT color="#FF0000"&gt;13 13&lt;/FONT&gt;
SCOT: Females 241.3 189.1 307.9 &lt;FONT color="#FF0000"&gt;12 12&lt;/FONT&gt;
SCOT: NHW 218.4 170.8 279.4 &lt;FONT color="#FF0000"&gt;11 11&lt;/FONT&gt;
SCOT: NHB 294.1 232.8 371.5 &lt;FONT color="#FF0000"&gt;10 10&lt;/FONT&gt;
SCOT: HISP 217.9 167.0 284.3 &lt;FONT color="#FF0000"&gt;9 9&lt;/FONT&gt;
SCOT: OTH 226.1 174.2 293.4 &lt;FONT color="#FF0000"&gt;8 8&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt;- - . . . 7 7&lt;/FONT&gt;
NNAL: Males 258.0 162.1 410.7 6 6
NNAL: Females 360.5 226.7 573.3 5 5
NNAL: NHW 334.9 214.9 522.0 4 4
NNAL: NHB 258.5 157.0 425.5 3 3
NNAL: HISP 324.1 202.9 517.8 2 2
NNAL: OTH 308.3 189.9 500.6 1 1
;
run;

&lt;FONT color="#FF0000"&gt;options missing = ' ';&lt;/FONT&gt;

title 'Adjusted Geometric Means with 95% Confidence Intervals';

proc sgplot data=x noautolegend nocycleattrs;
    refline 150 600 / axis=x;
    highlow y=ns2 low=ll high=ul / type=bar intervalbarwidth=.05in
        nooutline fillattrs=graphdata1 (color=Green);
    scatter y=ns2 x=agm / markerattrs=graphdata2
        (symbol=circlefilled size=15 color=black);
    yaxistable sname / y=ns2 position=left location=outside
        nolabel valuejustify=left pad=(right=0px) labelattrs=(weight=bold)
        &lt;FONT color="#FF0000"&gt;valueattrs = (weight=bold)&lt;/FONT&gt;
        ;
    yaxistable agm LL UL / y=nS2 position=right location=inside
        labelhalign=center labelattrs=(weight=bold)
        &lt;FONT color="#FF0000"&gt;valueattrs = (weight=bold)&lt;/FONT&gt;
        pad=(left=20px right=10px);
    yaxis display=none offsetmin=0.1 offsetmax=0.05 values=(1 to &lt;FONT color="#FF0000"&gt;13&lt;/FONT&gt;);
run;&lt;/PRE&gt;
&lt;P&gt;Does that work for you now?................Phil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS. BTW you don't use na2 anywhere in this program!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 10:28:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/forest-plot/m-p/254429#M277</guid>
      <dc:creator>hollandnumerics</dc:creator>
      <dc:date>2016-03-04T10:28:52Z</dc:date>
    </item>
  </channel>
</rss>

