<?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: Renaming and reording X axis variables in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Renaming-and-reording-X-axis-variables/m-p/927310#M41633</link>
    <description>&lt;P&gt;To re-order the values (not variables) on the X-axis, you would have to sort data set WORKING4 in the order that you want the values to appear. Then in PROC GLM you would use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc GLM data=working4 (rename=(change_fev1pp = Change)) order=data; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might also be able to use ORDER=FORMATTED but since we don't know what the format is that your are using, I can't say if that would work.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 14:17:25 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-05-07T14:17:25Z</dc:date>
    <item>
      <title>Renaming and reording X axis variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Renaming-and-reording-X-axis-variables/m-p/927265#M41626</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running an interaction but need to reorder the x axis variables from how it is displayed below to PRISm, GOLD 0 - GOLD 4.&amp;nbsp; Additionally, I need to change the legend diabetes_P1 to 'diabetes at baseline' and the Title to 'Change in FEV1pp'.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc GLM data=working4 (rename=(change_fev1pp = Change)); 
	class finalgold_P1 (ref='GOLD 0') diabetes_p1 (ref="No");
	model  Change =  finalgold_P1 diabetes_p1 finalgold_p1*diabetes_p1; 
	lsmeans diabetes_p1 finalgold_P1/ pdiff;
	format finalgold_p1 Baseline_GOLD_Stage. diabetes_p1 diabetes_baseline. diabetes_P3 diabetes_final.;
	label Change ='Change in FEV1pp';
	run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Output:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Change in FEV1.png" style="width: 732px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96209iF90680EE23312898/image-size/large?v=v2&amp;amp;px=999" role="button" title="Change in FEV1.png" alt="Change in FEV1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I've tried:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Using rename for diabetes_P1. This does not work, I think due to the formatting of diabetes_P1 to diabetes_baseline.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. I tried adding Title = 'Change in FEV1pp Over 10 Years' into the code. There are no errors, but it doesn't change the title.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Someone suggested I use ODS but I am unfamiliar with using that code.&amp;nbsp; Is there an easy way to incorporate what I need into this code?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 02:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Renaming-and-reording-X-axis-variables/m-p/927265#M41626</guid>
      <dc:creator>kristiepauly</dc:creator>
      <dc:date>2024-05-07T02:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming and reording X axis variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Renaming-and-reording-X-axis-variables/m-p/927267#M41627</link>
      <description>You are asking too many things.&lt;BR /&gt;Post your sas dataset and full sas code could help you to solve this problem.</description>
      <pubDate>Tue, 07 May 2024 02:46:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Renaming-and-reording-X-axis-variables/m-p/927267#M41627</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-05-07T02:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming and reording X axis variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Renaming-and-reording-X-axis-variables/m-p/927288#M41630</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Additionally, I need to change the legend diabetes_P1 to 'diabetes at baseline' and the Title to 'Change in FEV1pp'.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We need to see what you did, show us your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I tried adding Title = 'Change in FEV1pp Over 10 Years' into the code. There are no errors, but it doesn't change the title.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is never sufficient to say it doesn't work. You need to show us the code that you tried.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 09:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Renaming-and-reording-X-axis-variables/m-p/927288#M41630</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-05-07T09:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming and reording X axis variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Renaming-and-reording-X-axis-variables/m-p/927310#M41633</link>
      <description>&lt;P&gt;To re-order the values (not variables) on the X-axis, you would have to sort data set WORKING4 in the order that you want the values to appear. Then in PROC GLM you would use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc GLM data=working4 (rename=(change_fev1pp = Change)) order=data; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might also be able to use ORDER=FORMATTED but since we don't know what the format is that your are using, I can't say if that would work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 14:17:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Renaming-and-reording-X-axis-variables/m-p/927310#M41633</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-05-07T14:17:25Z</dc:date>
    </item>
  </channel>
</rss>

