<?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: how to reduce the font size of the covariates in the standardized mean difference plots in PSMAT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-reduce-the-font-size-of-the-covariates-in-the/m-p/884687#M349518</link>
    <description>&lt;P&gt;Your explanations are very helpful. It worked well. Thank you, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2023 16:56:46 GMT</pubDate>
    <dc:creator>skim2</dc:creator>
    <dc:date>2023-07-13T16:56:46Z</dc:date>
    <item>
      <title>how to reduce the font size of the covariates in the standardized mean difference plots in PSMATCH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-reduce-the-font-size-of-the-covariates-in-the/m-p/884603#M349487</link>
      <description>&lt;P&gt;I ran the PSMATCH with a "stddiff" plot option. I would like to know a way to reduce the font size of covariates (Y-axis) generated in the plots after running the PSMATCH.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc psmatch data=SampleData;&lt;BR /&gt;psmodel mpk_flag(Treated='0') = age diabetes ischemic_heart_disease intellectual_disabilities ;&lt;BR /&gt;match method=optimal stat=lps caliper=0.5;&lt;BR /&gt;assess lps var=(age diabetes ischemic_heart_disease intellectual_disabilities) / plots=StdDiff;&lt;BR /&gt;output out(obs=match)=MatchedData weight=attwgt;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 03:34:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-reduce-the-font-size-of-the-covariates-in-the/m-p/884603#M349487</guid>
      <dc:creator>skim2</dc:creator>
      <dc:date>2023-07-13T03:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce the font size of the covariates in the standardized mean difference plots in PSMAT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-reduce-the-font-size-of-the-covariates-in-the/m-p/884631#M349498</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/445984"&gt;@skim2&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would rather change the font size &lt;EM&gt;before&lt;/EM&gt; running PROC PSMATCH. To this end, you can &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_templt_sect011.htm" target="_blank" rel="noopener"&gt;create a modified version of the ODS template&lt;/A&gt; PROC PSMATCH uses for the StdDiff plot. See&amp;nbsp;&lt;A style="background-color: #ffffff;" href="https://communities.sas.com/t5/SAS-Programming/PROC-PSMATCH-Is-there-a-way-to-change-the-x-axis-label-for-the/m-p/801169/highlight/true#M315284" target="_blank" rel="noopener"&gt;Re: PROC PSMATCH: Is there a way to change the x-axis label ...&lt;/A&gt;&amp;nbsp;for more details and caveats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In short:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Submit&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods path show;&lt;/CODE&gt;&lt;/PRE&gt;
and make sure that the "Current ODS PATH list" that is written to the log looks like this:&lt;BR /&gt;
&lt;PRE&gt;1. WORK.TEMPLAT(UPDATE)
2. SASUSER.TEMPLAT(READ)
3. SASHELP.TMPLMST(READ)&lt;/PRE&gt;
That is, you can only "update" the temporary WORK.TEMPLAT store, while the&amp;nbsp;SAS-supplied template stores are "read"-only.&lt;/LI&gt;
&lt;LI&gt;Copy the PROC TEMPLATE code of&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Stat.PSMatch.Graphics.StdDiffPlot&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(path in the Templates window: Sashelp.Tmplstat\Stat\PSMatch\Graphics\StdDiffPlot) from the template browser into your program editor.&lt;/LI&gt;
&lt;LI&gt;In the bottom half of that code you see the "&lt;FONT face="courier new,courier"&gt;else&lt;/FONT&gt;" branch of an "&lt;FONT face="courier new,courier"&gt;if (_VERTICAL)&lt;/FONT&gt;" statement. The "&lt;FONT face="courier new,courier"&gt;else&lt;/FONT&gt;" branch&amp;nbsp;starts with a "&lt;FONT face="courier new,courier"&gt;Layout Overlay&lt;/FONT&gt;" statement ending with&lt;BR /&gt;
&lt;PRE&gt;viewmax=_YMAX));&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Insert the instruction for your desired font size change before the last closing parenthesis, for example:&lt;BR /&gt;
&lt;PRE&gt;viewmax=_YMAX) &lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;tickvalueattrs=(size=7pt)&lt;/FONT&gt;&lt;/STRONG&gt;);&lt;/PRE&gt;
(the default font size seems to be 9pt, but may depend on the ODS style).&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now run this modified PROC TEMPLATE step and your PROC PSMATCH code and check the result in the graph. Adjust the SIZE= specification (&lt;FONT face="courier new,courier"&gt;7pt&lt;/FONT&gt;) in the PROC TEMPLATE code as needed.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 09:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-reduce-the-font-size-of-the-covariates-in-the/m-p/884631#M349498</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-07-13T09:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce the font size of the covariates in the standardized mean difference plots in PSMAT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-reduce-the-font-size-of-the-covariates-in-the/m-p/884687#M349518</link>
      <description>&lt;P&gt;Your explanations are very helpful. It worked well. Thank you, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 16:56:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-reduce-the-font-size-of-the-covariates-in-the/m-p/884687#M349518</guid>
      <dc:creator>skim2</dc:creator>
      <dc:date>2023-07-13T16:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce the font size of the covariates in the standardized mean difference plots in PSMAT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-reduce-the-font-size-of-the-covariates-in-the/m-p/884738#M349541</link>
      <description>&lt;P&gt;It looks like the maximum number of characters displayed for each covariate is fixed at 20. Is there a way to increase the maximum number (or length) of characters?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 01:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-reduce-the-font-size-of-the-covariates-in-the/m-p/884738#M349541</guid>
      <dc:creator>skim2</dc:creator>
      <dc:date>2023-07-14T01:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce the font size of the covariates in the standardized mean difference plots in PSMAT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-reduce-the-font-size-of-the-covariates-in-the/m-p/884755#M349550</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/445984"&gt;@skim2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It looks like the maximum number of characters displayed for each covariate is fixed at 20. Is there a way to increase the maximum number (or length) of characters?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I know that several SAS/STAT procedures,&amp;nbsp;for example PROC LOGISTIC, PROC GLM and PROC LIFEREG, have a default length of 20 characters for names of effects or covariates, which can be overridden by the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_logistic_syntax01.htm#statug.logistic.logisticnamelen" target="_blank" rel="noopener"&gt;NAMELEN= option&lt;/A&gt; of the respective PROC statement. However, according to the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_psmatch_syntax01.htm" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;, PROC PSMATCH is &lt;EM&gt;not&lt;/EM&gt; among those procedures and in my tabular and graphical outputs (using SAS/STAT 14.3) your longer variable names&amp;nbsp;&lt;FONT face="courier new,courier"&gt;ischemic_heart_disease&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;intellectual_disabilities&lt;/FONT&gt; are &lt;EM&gt;not&lt;/EM&gt; truncated, even if I &lt;EM&gt;increase&lt;/EM&gt; the font size for the StdDiff plot to 24pt. Where do you see covariate names truncated to 20 characters?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 08:58:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-reduce-the-font-size-of-the-covariates-in-the/m-p/884755#M349550</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-07-14T08:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce the font size of the covariates in the standardized mean difference plots in PSMAT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-reduce-the-font-size-of-the-covariates-in-the/m-p/884841#M349587</link>
      <description>Rather than displaying the variable names, I switched it as their labels. For example, I used it as intellectual disabilities'n. but, it was truncated up to 20 characters.</description>
      <pubDate>Fri, 14 Jul 2023 17:36:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-reduce-the-font-size-of-the-covariates-in-the/m-p/884841#M349587</guid>
      <dc:creator>skim2</dc:creator>
      <dc:date>2023-07-14T17:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce the font size of the covariates in the standardized mean difference plots in PSMAT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-reduce-the-font-size-of-the-covariates-in-the/m-p/884861#M349588</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/445984"&gt;@skim2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Rather than displaying the variable names, I switched it as their labels. For example, I used it as intellectual disabilities'n. but, it was truncated up to 20 characters.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Can you please show your code? I don't see an option in PROC PSMATCH that would replace variable names with labels. Maybe it is not yet available in my relatively old SAS/STAT version. Or did you make that change in PROC TEMPLATE?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;FONT color="#999999"&gt;intellectual disabilities'n&lt;/FONT&gt;" resembles a &lt;EM&gt;name literal&lt;/EM&gt;. If you are using the SAS system option &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p124dqdk8zoqu3n1r4nsfqu5vx52.htm#p0p95ocgx3357mn1x7c08ngj0k1n" target="_blank" rel="noopener"&gt;VALIDVARNAME=ANY&lt;/A&gt;, the variable &lt;U&gt;name&lt;/U&gt; could be&amp;nbsp;&lt;FONT face="courier new,courier"&gt;intellectual disabilities&lt;/FONT&gt;&amp;nbsp;(without the underscore between the words) and the variable would be referred to as&amp;nbsp;&lt;FONT face="courier new,courier"&gt;'intellectual disabilities'n&lt;/FONT&gt; in the program. The name would also appear at the corresponding y-axis tick mark, as shown below (for completeness, I also renamed&amp;nbsp;&lt;FONT face="courier new,courier"&gt;ischemic_heart_disease&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;'ischemic heart disease'n&lt;/FONT&gt;).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StdDiff.png" style="width: 513px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85781i1DF4B01EFFC0A9C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="StdDiff.png" alt="StdDiff.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, using those non-standard variable names&amp;nbsp;looks like a solution for your truncation issue because, as you can see, the names are not truncated to 20 characters. In fact, they can be up to 32 characters long, so even&amp;nbsp;&lt;FONT face="courier new,courier"&gt;severe intellectual disabilities&lt;/FONT&gt;&amp;nbsp;would be a valid variable name (and not be truncated) if you used&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=any;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 19:19:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-reduce-the-font-size-of-the-covariates-in-the/m-p/884861#M349588</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-07-14T19:19:30Z</dc:date>
    </item>
  </channel>
</rss>

