<?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 Plotting several values for an dependent variable vrs single independent variable using PROC REG in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Plotting-several-values-for-an-dependent-variable-vrs-single/m-p/529237#M144544</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I have a data of this form:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
  input X Y $20.;
  infile datalines dlm=',';
datalines;
2.5,7.5 9.5 8.0 8.5
5.0,11.0 12.0 9.0 10.0
7.5,11.0 16.0 12.5 14.0
10.0,16.5 14.5 21.5 19.0
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;And I want to use PROC REG to plot series of graphs. So I used the code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=one plots=all;
  model Y=X / p r clm cli influence;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But I keep encountering this error below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; 

195  proc reg data=one plots=all;
196    model Y=X / p r clm cli influence;
ERROR: Variable Y in list does not match type prescribed for this list.
NOTE: The previous statement has been deleted.
197  run;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;How do I go about this?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jan 2019 19:45:38 GMT</pubDate>
    <dc:creator>JUMMY</dc:creator>
    <dc:date>2019-01-22T19:45:38Z</dc:date>
    <item>
      <title>Plotting several values for an dependent variable vrs single independent variable using PROC REG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plotting-several-values-for-an-dependent-variable-vrs-single/m-p/529237#M144544</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a data of this form:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
  input X Y $20.;
  infile datalines dlm=',';
datalines;
2.5,7.5 9.5 8.0 8.5
5.0,11.0 12.0 9.0 10.0
7.5,11.0 16.0 12.5 14.0
10.0,16.5 14.5 21.5 19.0
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;And I want to use PROC REG to plot series of graphs. So I used the code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=one plots=all;
  model Y=X / p r clm cli influence;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But I keep encountering this error below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; 

195  proc reg data=one plots=all;
196    model Y=X / p r clm cli influence;
ERROR: Variable Y in list does not match type prescribed for this list.
NOTE: The previous statement has been deleted.
197  run;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;How do I go about this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 19:45:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plotting-several-values-for-an-dependent-variable-vrs-single/m-p/529237#M144544</guid>
      <dc:creator>JUMMY</dc:creator>
      <dc:date>2019-01-22T19:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting several values for an dependent variable vrs single independent variable using PROC REG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plotting-several-values-for-an-dependent-variable-vrs-single/m-p/529246#M144547</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/226541"&gt;@JUMMY&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;I have a data of this form:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
  input X Y $20.;
  infile datalines dlm=',';
datalines;
2.5,7.5 9.5 8.0 8.5
5.0,11.0 12.0 9.0 10.0
7.5,11.0 16.0 12.5 14.0
10.0,16.5 14.5 21.5 19.0
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;And I want to use PROC REG to plot series of graphs. So I used the code below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=one plots=all;
  model Y=X / p r clm cli influence;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But I keep encountering this error below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; 

195  proc reg data=one plots=all;
196    model Y=X / p r clm cli influence;
ERROR: Variable Y in list does not match type prescribed for this list.
NOTE: The previous statement has been deleted.
197  run;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;How do I go about this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Proc Reg expects all variables on the model statement to be numeric. Your Y variable is character. That is what &lt;STRONG&gt;type&lt;/STRONG&gt; refers to.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 20:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plotting-several-values-for-an-dependent-variable-vrs-single/m-p/529246#M144547</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-22T20:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting several values for an dependent variable vrs single independent variable using PROC REG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plotting-several-values-for-an-dependent-variable-vrs-single/m-p/529248#M144549</link>
      <description>&lt;P&gt;It's not even clear to me what the series of graphs is that you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I'm going to take a guess ...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
  input X Y1 y2 y3 y4;
  infile datalines;
datalines;
2.5 7.5 9.5 8.0 8.5
5.0 11.0 12.0 9.0 10.0
7.5 11.0 16.0 12.5 14.0
10.0 16.5 14.5 21.5 19.0
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Do you want a plot of X versus Y1 and then another plot of X versus Y2 and so on? Do you want regression plots (showing the regression line) or scatterplots or both or neither?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 20:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plotting-several-values-for-an-dependent-variable-vrs-single/m-p/529248#M144549</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-22T20:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting several values for an dependent variable vrs single independent variable using PROC REG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plotting-several-values-for-an-dependent-variable-vrs-single/m-p/529253#M144552</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;, I want regression plots showing the regression line as well as the scatterplots. Is there a way to plot other without using Y1-Y4?</description>
      <pubDate>Tue, 22 Jan 2019 20:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plotting-several-values-for-an-dependent-variable-vrs-single/m-p/529253#M144552</guid>
      <dc:creator>JUMMY</dc:creator>
      <dc:date>2019-01-22T20:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting several values for an dependent variable vrs single independent variable using PROC REG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plotting-several-values-for-an-dependent-variable-vrs-single/m-p/529254#M144553</link>
      <description>&lt;P&gt;If your intent is to have 4 values of a single dependent variable then try this:&lt;/P&gt;
&lt;PRE&gt;data one;
  input X @;
  do i= 1 to 4;
   input Y @;
   output;
  end;
  drop i;
datalines;
2.5  7.5 9.5 8.0 8.5
5.0  11.0 12.0 9.0 10.0
7.5  11.0 16.0 12.5 14.0
10.0  16.5 14.5 21.5 19.0
;
run;

ods graphics on; 
proc reg data=one plots=all;
  model Y=X / p r clm cli influence;
run;
ods graphics off;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Jan 2019 20:21:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plotting-several-values-for-an-dependent-variable-vrs-single/m-p/529254#M144553</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-22T20:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting several values for an dependent variable vrs single independent variable using PROC REG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plotting-several-values-for-an-dependent-variable-vrs-single/m-p/529256#M144555</link>
      <description>&lt;P&gt;Why don't you want to use Y1 Y2 Y3 Y4? This makes everything much simpler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want four lines and four scatterplots on the same plot; or do you want four different plots?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 20:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plotting-several-values-for-an-dependent-variable-vrs-single/m-p/529256#M144555</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-22T20:21:40Z</dc:date>
    </item>
  </channel>
</rss>

