<?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: Is there a way to customize/change the label for the standardized mean difference plot? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-customize-change-the-label-for-the/m-p/823364#M81943</link>
    <description>&lt;P&gt;I found this post helpful. I however noticed that labels with space in them e.g. 'Government insurance'n did not work because of the space in between. If I put a hyphen&amp;nbsp; '_'&amp;nbsp; between, it worked bu that does not fit the purpose&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2022 16:52:54 GMT</pubDate>
    <dc:creator>Banke</dc:creator>
    <dc:date>2022-07-14T16:52:54Z</dc:date>
    <item>
      <title>Is there a way to customize/change the label for the standardized mean difference plot?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-customize-change-the-label-for-the/m-p/780635#M81222</link>
      <description>&lt;P&gt;I am using PROC PSMATCH to make a standardized mean difference plot, and I want to know if it is possible to change the label of the variable, as the plot just uses the variable's default name. This is some SAS code I used to make a standardized mean difference plot on the CARS dataset using PROC PSMATCH.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data CARS;
set sashelp.CARS;
format CAR_TYPE $50.;
if TYPE = 'SUV' then CAR_TYPE = 'SUV';
if TYPE = 'Sedan' then CAR_TYPE = 'SEDAN';
if CAR_TYPE ne ' ';
run;

ods graphics on;
proc psmatch data=CARS region=cs;
	class CAR_TYPE;
	psmodel CAR_TYPE(Treated="SUV")=MPG_CITY;
	match method=optimal(k=1)
			distance=mah(lps)
			caliper=.
			weight=none;
	assess lps var=(MPG_CITY);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PROC PSMATCH Std Mean Diff Plot.png" style="width: 524px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65796iD03A501230B99B0D/image-dimensions/524x394?v=v2" width="524" height="394" role="button" title="PROC PSMATCH Std Mean Diff Plot.png" alt="PROC PSMATCH Std Mean Diff Plot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, is it possible to change "MPG_City" to "Mpg in the City" in this plot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for any help or advice!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 00:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-customize-change-the-label-for-the/m-p/780635#M81222</guid>
      <dc:creator>ble9245</dc:creator>
      <dc:date>2021-11-17T00:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to customize/change the label for the standardized mean difference plot?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-customize-change-the-label-for-the/m-p/780657#M81223</link>
      <description>&lt;P&gt;Mmm there might be no way to use a label.&lt;/P&gt;
&lt;P&gt;Maybe like this if your site supports name literals (please don't use them unless necessary*)?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc psmatch data=CARS(rename=(MPG_CITY='MPG In City'n)) region=cs;
	class CAR_TYPE;
	psmodel CAR_TYPE(Treated="SUV")='MPG In City'n;
	match method=optimal(k=1)
			distance=mah(lps)
			caliper=.
			weight=none;
	assess lps var=('MPG In City'n);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class="xisDoc-importantGenText"&gt;* IMPORTANT&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Throughout SAS, using the name literal syntax with variable names that exceed the 32-byte limit or have excessive embedded quotation marks might cause unexpected results. The intent of the VALIDVARNAME=ANY system option is to enable compatibility with other DBMS variable (column) naming conventions, such as allowing embedded blanks and national characters. See&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/n1m3fal4mygiy0n1fvq8v5ax2jfn.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/n1m3fal4mygiy0n1fvq8v5ax2jfn.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 04:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-customize-change-the-label-for-the/m-p/780657#M81223</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-11-17T04:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to customize/change the label for the standardized mean difference plot?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-customize-change-the-label-for-the/m-p/780789#M81227</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked! Thank you so much for your help. It's useful how SAS has these name literals to allow special characters and flexibility in variable names. However, it is a bit of a pain to have to change the name of each variable to the name literal each time the variable is referenced.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this sample code that stores the name literals into macro variables, so that may be helpful if you need to make multiple name literals for multiple variables.&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/kb/48/278.html" target="_blank" rel="noopener"&gt;https://support.sas.com/kb/48/278.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 17:22:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-customize-change-the-label-for-the/m-p/780789#M81227</guid>
      <dc:creator>ble9245</dc:creator>
      <dc:date>2021-11-17T17:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to customize/change the label for the standardized mean difference plot?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-customize-change-the-label-for-the/m-p/823364#M81943</link>
      <description>&lt;P&gt;I found this post helpful. I however noticed that labels with space in them e.g. 'Government insurance'n did not work because of the space in between. If I put a hyphen&amp;nbsp; '_'&amp;nbsp; between, it worked bu that does not fit the purpose&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 16:52:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-way-to-customize-change-the-label-for-the/m-p/823364#M81943</guid>
      <dc:creator>Banke</dc:creator>
      <dc:date>2022-07-14T16:52:54Z</dc:date>
    </item>
  </channel>
</rss>

