<?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 Re: Numbers show in star (*)  in proc sgrender in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Numbers-show-in-star-in-proc-sgrender/m-p/619317#M77104</link>
    <description>&lt;P&gt;After applied the valueformat=best6. , numbers show in correct format, however, it misses the format I use for null values as showed in proc sgrender (format probchisq hazardratio hrlowercl hruppercl misblank.;) Does the best6. override my customized "misblank," format? I have no idea now how to fix this.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-01-22 at 3.44.46 PM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35563i779B122BCDB380C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-01-22 at 3.44.46 PM.png" alt="Screen Shot 2020-01-22 at 3.44.46 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2020 20:48:01 GMT</pubDate>
    <dc:creator>Coffecat</dc:creator>
    <dc:date>2020-01-22T20:48:01Z</dc:date>
    <item>
      <title>Numbers show in star (*)  in proc sgrender</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numbers-show-in-star-in-proc-sgrender/m-p/618733#M77068</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I was using proc template and sgrender to get a forest plot. The statistic numbers round themself or show as a star(*) if the number is very large.&amp;nbsp; As you can see in attached file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ray&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="figure_Forest (4).png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35512i32C0F32FD5B4728B/image-size/large?v=v2&amp;amp;px=999" role="button" title="figure_Forest (4).png" alt="figure_Forest (4).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 00:35:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numbers-show-in-star-in-proc-sgrender/m-p/618733#M77068</guid>
      <dc:creator>Coffecat</dc:creator>
      <dc:date>2020-01-21T00:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers show in star (*)  in proc sgrender</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numbers-show-in-star-in-proc-sgrender/m-p/618928#M77072</link>
      <description>&lt;P&gt;The single most common cause of such a display I have found is specifying a format that displays too few characters for the value.&lt;/P&gt;
&lt;P&gt;If you run this code the log will display an * as you mention:&lt;/P&gt;
&lt;PRE&gt;data example;
   x=10;
   put x= f1.;
run;&lt;/PRE&gt;
&lt;P&gt;The reason is there is no way for a value such as 10 or greater&amp;nbsp;to be displayed with a single character (unless you go to HEX and then you have a limit of 16 base 10). Values less than&amp;nbsp;10 can be rounded to a single digit in some fashion but no way for larger.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you likely need to change the format you are using but I can't suggest one without knowing the ranges of values and what you would like to display.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you share your template or sgrender code we might suggest where to make a format change.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 19:04:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numbers-show-in-star-in-proc-sgrender/m-p/618928#M77072</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-01-21T19:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers show in star (*)  in proc sgrender</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numbers-show-in-star-in-proc-sgrender/m-p/619031#M77076</link>
      <description>&lt;P&gt;Thank you for your help. I post my dataset and code below. I used 8.3 format for my dataset(all those numeric variables).&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-01-21 at 10.39.30 PM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35546iAA38A0966F807722/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-01-21 at 10.39.30 PM.png" alt="Screen Shot 2020-01-21 at 10.39.30 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code. Problem column is the 4,5,6 and 7th column as I comment below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;roc template;&lt;BR /&gt;define statgraph Ray;&lt;BR /&gt;dynamic _show_bands _color _thk inserttitle;&lt;BR /&gt;begingraph;&lt;BR /&gt;entrytitle 'Forest Plot of' inserttitle 'Hazard Ratios by Patient Subgroups';&lt;BR /&gt;&lt;BR /&gt;discreteattrmap name='text';&lt;BR /&gt;value '0' / textattrs=(weight=bold);&lt;BR /&gt;value other;&lt;BR /&gt;enddiscreteattrmap;&lt;BR /&gt;discreteattrvar attrvar=type var=indent attrmap='text';&lt;BR /&gt;&lt;BR /&gt;layout lattice / columns=7 columnweights=(0.15 0.12 0.4 0.1 0.08 0.08 0.09);&lt;BR /&gt;&lt;BR /&gt;***column headers****;&lt;BR /&gt;sidebar / align=top;&lt;BR /&gt;layout lattice / rows=1 columns=4 columnweights=(0.15 0.12 0.4 0.35);&lt;BR /&gt;entry textattrs=(size=8) halign=left "Subgroup";&lt;BR /&gt;entry textattrs=(size=8) halign=left " No.of Patients";&lt;BR /&gt;entry textattrs=(size=8) halign=center "Hazard Ratio";&lt;BR /&gt;entry halign=center textattrs=(size=8) "Statistics" ;&lt;BR /&gt;endlayout;&lt;BR /&gt;endsidebar;&lt;BR /&gt;&lt;BR /&gt;********First group**********;&lt;BR /&gt;layout overlay / walldisplay=none xaxisopts = (display=none)&lt;BR /&gt;yaxisopts = (reverse=true display=none tickvalueattrs=(weight=bold));&lt;BR /&gt;/* referenceline y = subgroup / lineattrs=(thickness=_thk color=_color); */&lt;BR /&gt;axistable y=subgroup value=subgroup /indentweight=indent textgroup=type&lt;BR /&gt;display=(values);&lt;BR /&gt;endlayout;&lt;BR /&gt;&lt;BR /&gt;**********Second column***********;&lt;BR /&gt;layout overlay / walldisplay=none xaxisopts = (display=none)&lt;BR /&gt;yaxisopts = (reverse=true display=none tickvalueattrs=(weight=bold));&lt;BR /&gt;/* referenceline y = subgroup / lineattrs=(thickness=_thk color=_color); */&lt;BR /&gt;axistable y=subgroup value=Number_of_Patients /display=(values);&lt;BR /&gt;endlayout;&lt;BR /&gt;***********Third column**************;&lt;BR /&gt;layout overlay / xaxisopts=(label='&amp;lt;-Active-- ----------Placebo---&amp;gt;'&lt;BR /&gt;linearopts=(viewmin=-1 viewmax=11&lt;BR /&gt;tickvaluelist=(-0.1 0.0 0.5 1.0 1.5 2.0 2.5 3.5 5.0 8.0)))&lt;BR /&gt;yaxisopts=(reverse=true display=none) walldisplay=none;&lt;BR /&gt;*referenceline y=user_label / lineattrs=(thickness=_thk color=_color);&lt;BR /&gt;scatterplot y=subgroup x=hazardratio / xerrorlower=hrlowercl xerrorupper=hruppercl&lt;BR /&gt;markerattrs=(symbol=squarefilled);&lt;BR /&gt;referenceline x=1;&lt;BR /&gt;endlayout;&lt;BR /&gt;&lt;BR /&gt;***********4th Column*****************;&lt;BR /&gt;layout overlay / x2axisopts=(display=none offsetmin=0.25 offsetmax=0.25 )&lt;BR /&gt;yaxisopts=(reverse=true display=none) walldisplay=none;&lt;BR /&gt;&lt;BR /&gt;axistable y=subgroup value=HazardRatio ;&lt;BR /&gt;endlayout;&lt;BR /&gt;******5th Column********;&lt;BR /&gt;layout overlay / x2axisopts=(display=(tickvalues) offsetmin=0.25 offsetmax=0.25)&lt;BR /&gt;yaxisopts=(reverse=true display=none) walldisplay=none;&lt;BR /&gt;axistable y =subgroup value = HRLowerCL ;&lt;BR /&gt;endlayout;&lt;BR /&gt;&lt;BR /&gt;******6th Column********;&lt;BR /&gt;layout overlay / x2axisopts=(display=(tickvalues) offsetmin=0.25 offsetmax=0.25)&lt;BR /&gt;yaxisopts=(reverse=true display=none) walldisplay=none;&lt;BR /&gt;axistable y =subgroup value = HRUpperCL ;&lt;BR /&gt;endlayout;&lt;BR /&gt;&lt;BR /&gt;******7th Column********;&lt;BR /&gt;layout overlay / x2axisopts=(display=(tickvalues) offsetmin=0.25 offsetmax=0.25)&lt;BR /&gt;yaxisopts=(reverse=true display=none) walldisplay=none;&lt;BR /&gt;axistable y =subgroup value = ProbChiSq;&lt;BR /&gt;endlayout;&lt;BR /&gt;&lt;BR /&gt;endlayout;&lt;BR /&gt;&lt;BR /&gt;entryfootnote halign=left textattrs=(size=7)&lt;BR /&gt;'The ProbChiSq is from the test statistic for testing the interaction between the treatment and any subgroup variable';&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value misblank&lt;BR /&gt;.='';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods html&amp;nbsp;file = 'figure_Forest.html' image_dpi = 300 style = htmlblue;&lt;BR /&gt;ods graphics on / reset imagename = 'figure_Forest' outputfmt = png;&lt;BR /&gt;proc sgrender data=forest template=ray;&lt;BR /&gt;format probchisq hazardratio hrlowercl hruppercl misblank.;&lt;BR /&gt;dynamic _color='cxf0f0f' _thk=12 inserttitle = ' OS ';&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 03:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numbers-show-in-star-in-proc-sgrender/m-p/619031#M77076</guid>
      <dc:creator>Coffecat</dc:creator>
      <dc:date>2020-01-22T03:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers show in star (*)  in proc sgrender</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numbers-show-in-star-in-proc-sgrender/m-p/619250#M77084</link>
      <description>&lt;P&gt;Specify a VALUEFORMAT= options for variables to control appearance such as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;***********4th Column*****************;
layout overlay / x2axisopts=(display=none offsetmin=0.25 offsetmax=0.25 )
yaxisopts=(reverse=true display=none) walldisplay=none;

axistable y=subgroup value=HazardRatio valueformat=6.4 ;
endlayout;&lt;/PRE&gt;
&lt;P&gt;to display the Hazard ration with 6 print positions and 4 decimals.&lt;/P&gt;
&lt;P&gt;If you aren't sure what format you want you might try BEST6. for all the problem columns to see what gets displayed and adjust as desired.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 17:47:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numbers-show-in-star-in-proc-sgrender/m-p/619250#M77084</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-01-22T17:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers show in star (*)  in proc sgrender</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numbers-show-in-star-in-proc-sgrender/m-p/619312#M77101</link>
      <description>&lt;P&gt;Thank you so much!!! That is the right solution. One more question, if I do not specify the format, is the default format&amp;nbsp; show only one character in the scenario?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 20:38:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numbers-show-in-star-in-proc-sgrender/m-p/619312#M77101</guid>
      <dc:creator>Coffecat</dc:creator>
      <dc:date>2020-01-22T20:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers show in star (*)  in proc sgrender</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numbers-show-in-star-in-proc-sgrender/m-p/619317#M77104</link>
      <description>&lt;P&gt;After applied the valueformat=best6. , numbers show in correct format, however, it misses the format I use for null values as showed in proc sgrender (format probchisq hazardratio hrlowercl hruppercl misblank.;) Does the best6. override my customized "misblank," format? I have no idea now how to fix this.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-01-22 at 3.44.46 PM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35563i779B122BCDB380C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-01-22 at 3.44.46 PM.png" alt="Screen Shot 2020-01-22 at 3.44.46 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 20:48:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numbers-show-in-star-in-proc-sgrender/m-p/619317#M77104</guid>
      <dc:creator>Coffecat</dc:creator>
      <dc:date>2020-01-22T20:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers show in star (*)  in proc sgrender</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numbers-show-in-star-in-proc-sgrender/m-p/619320#M77105</link>
      <description>&lt;P&gt;I figured out... I can use misblank6.2 to do this right.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 20:52:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numbers-show-in-star-in-proc-sgrender/m-p/619320#M77105</guid>
      <dc:creator>Coffecat</dc:creator>
      <dc:date>2020-01-22T20:52:25Z</dc:date>
    </item>
  </channel>
</rss>

