<?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: Linear Regression Change Variable Name in Fit Plot in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Linear-Regression-Change-Variable-Name-in-Fit-Plot/m-p/906793#M40529</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC REG DATA=WORK.FIGURE (RENAME=outcomes_adults_mental_distr='Frequent Mental Distress'n)  
PLOTS(ONLY) = FITPLOT;
  LABEL Marijuana_Use = 'Percent of People Who Used Marijuana 1+ Days out of 30 Days';
  'Linear Regression'n:
  MODEL 'Frequent Mental Distress'n = Marijuana_Use /
        CLM
        CLI 
        ALPHA=0.05; 

  TITLE "Linear Regression of Frequent Mental Distress and Marijuana Use";
  ODS SELECT FitPlot;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Dec 2023 18:30:02 GMT</pubDate>
    <dc:creator>kcvaldez98</dc:creator>
    <dc:date>2023-12-07T18:30:02Z</dc:date>
    <item>
      <title>Linear Regression Change Variable Name in Fit Plot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Linear-Regression-Change-Variable-Name-in-Fit-Plot/m-p/906741#M40516</link>
      <description>&lt;P&gt;Hi Sas coders!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I create a linear regression that looks like this:&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-12-07 at 9.48.22 AM.png" style="width: 642px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90946iB9C0AFC284D7ABBD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-12-07 at 9.48.22 AM.png" alt="Screen Shot 2023-12-07 at 9.48.22 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am trying to change the Frequent_Mental_Distress in the Fit plot title to say: Fit Plot for Frequent Mental Distress without any of the underscores, I tried doing IF THEN statements and renaming statements but I don't know if I can use labels to be displayed in the fit plot title. Is that possible? My label would be "Percent of people with Frequent Mental Distress"&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 16:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Linear-Regression-Change-Variable-Name-in-Fit-Plot/m-p/906741#M40516</guid>
      <dc:creator>kcvaldez98</dc:creator>
      <dc:date>2023-12-07T16:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Regression Change Variable Name in Fit Plot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Linear-Regression-Change-Variable-Name-in-Fit-Plot/m-p/906752#M40519</link>
      <description>&lt;P&gt;It is much easier to show where changes to your code may be desired if you show the code you used to make to make the plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For one thing there are more than one procedures that do linear regression and they are likely to have some different options.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 17:20:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Linear-Regression-Change-Variable-Name-in-Fit-Plot/m-p/906752#M40519</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-12-07T17:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Regression Change Variable Name in Fit Plot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Linear-Regression-Change-Variable-Name-in-Fit-Plot/m-p/906755#M40521</link>
      <description>&lt;P&gt;My code is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;OPTIONS VALIDVARNAME=ANY;
PROC REG DATA=WORK.FIGURE (RENAME = outcomes_adults_mental_distr = Frequent_Mental_Distress) 
PLOTS(ONLY) = FITPLOT;
  LABEL Marijuana_Use = 'Percent of People Who Used Marijuana 1+ Days out of 30 Days';
  'Linear Regression'n:
  MODEL Frequent_Mental_Distress = Marijuana_Use /
        CLM
        CLI 
        ALPHA=0.05; 

  TITLE "Linear Regression of Frequent Mental Distress and Marijuana Use";
  ODS SELECT FitPlot;
RUN;
TITLE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you so much! I thought there was only like two procedures but good to know that there are more!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 17:23:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Linear-Regression-Change-Variable-Name-in-Fit-Plot/m-p/906755#M40521</guid>
      <dc:creator>kcvaldez98</dc:creator>
      <dc:date>2023-12-07T17:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Regression Change Variable Name in Fit Plot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Linear-Regression-Change-Variable-Name-in-Fit-Plot/m-p/906782#M40527</link>
      <description>I figured it out, thank you</description>
      <pubDate>Thu, 07 Dec 2023 18:20:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Linear-Regression-Change-Variable-Name-in-Fit-Plot/m-p/906782#M40527</guid>
      <dc:creator>kcvaldez98</dc:creator>
      <dc:date>2023-12-07T18:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Regression Change Variable Name in Fit Plot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Linear-Regression-Change-Variable-Name-in-Fit-Plot/m-p/906792#M40528</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/456544"&gt;@kcvaldez98&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I figured it out, thank you&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Great!.&lt;/P&gt;
&lt;P&gt;Please post an example of your solution and mark it as an accepted solution. That way others searching this forum, or brought here by a search engine, can benefit from your example.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 18:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Linear-Regression-Change-Variable-Name-in-Fit-Plot/m-p/906792#M40528</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-12-07T18:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Regression Change Variable Name in Fit Plot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Linear-Regression-Change-Variable-Name-in-Fit-Plot/m-p/906793#M40529</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC REG DATA=WORK.FIGURE (RENAME=outcomes_adults_mental_distr='Frequent Mental Distress'n)  
PLOTS(ONLY) = FITPLOT;
  LABEL Marijuana_Use = 'Percent of People Who Used Marijuana 1+ Days out of 30 Days';
  'Linear Regression'n:
  MODEL 'Frequent Mental Distress'n = Marijuana_Use /
        CLM
        CLI 
        ALPHA=0.05; 

  TITLE "Linear Regression of Frequent Mental Distress and Marijuana Use";
  ODS SELECT FitPlot;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Dec 2023 18:30:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Linear-Regression-Change-Variable-Name-in-Fit-Plot/m-p/906793#M40529</guid>
      <dc:creator>kcvaldez98</dc:creator>
      <dc:date>2023-12-07T18:30:02Z</dc:date>
    </item>
  </channel>
</rss>

