<?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 Plot a variable not specified in Model for reg proc in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Plot-a-variable-not-specified-in-Model-for-reg-proc/m-p/16468#M324</link>
    <description>Hi everybody,&lt;BR /&gt;
&lt;BR /&gt;
Newby on the forum and with sas, I would like to do a regression for exemple :&lt;BR /&gt;
 model car_solded = earn population&lt;BR /&gt;
&lt;BR /&gt;
After I would like plot the results and residues on the same graph but depending on time. But I have the problem below:&lt;BR /&gt;
ERROR: A variable was specified in the PLOT statement which is not specified in a VAR or&lt;BR /&gt;
       MODEL statement&lt;BR /&gt;
&lt;BR /&gt;
The complete example is below:&lt;BR /&gt;
proc reg data=data.data_used;&lt;BR /&gt;
	title 'regression lineaire';&lt;BR /&gt;
	model car_solded = earn population /r p;&lt;BR /&gt;
	plot r.*Time;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Could someone helping me.&lt;BR /&gt;
Thanks a lot</description>
    <pubDate>Wed, 13 Oct 2010 21:52:50 GMT</pubDate>
    <dc:creator>alex_PARIS</dc:creator>
    <dc:date>2010-10-13T21:52:50Z</dc:date>
    <item>
      <title>Plot a variable not specified in Model for reg proc</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-a-variable-not-specified-in-Model-for-reg-proc/m-p/16468#M324</link>
      <description>Hi everybody,&lt;BR /&gt;
&lt;BR /&gt;
Newby on the forum and with sas, I would like to do a regression for exemple :&lt;BR /&gt;
 model car_solded = earn population&lt;BR /&gt;
&lt;BR /&gt;
After I would like plot the results and residues on the same graph but depending on time. But I have the problem below:&lt;BR /&gt;
ERROR: A variable was specified in the PLOT statement which is not specified in a VAR or&lt;BR /&gt;
       MODEL statement&lt;BR /&gt;
&lt;BR /&gt;
The complete example is below:&lt;BR /&gt;
proc reg data=data.data_used;&lt;BR /&gt;
	title 'regression lineaire';&lt;BR /&gt;
	model car_solded = earn population /r p;&lt;BR /&gt;
	plot r.*Time;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Could someone helping me.&lt;BR /&gt;
Thanks a lot</description>
      <pubDate>Wed, 13 Oct 2010 21:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-a-variable-not-specified-in-Model-for-reg-proc/m-p/16468#M324</guid>
      <dc:creator>alex_PARIS</dc:creator>
      <dc:date>2010-10-13T21:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Plot a variable not specified in Model for reg proc</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-a-variable-not-specified-in-Model-for-reg-proc/m-p/16469#M325</link>
      <description>The documentation for PROC REG says&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;VAR&lt;BR /&gt;
    lists variables for which crossproducts are to be computed, variables that can be interactively added to the model, or variables to be used in scatter plots.&lt;BR /&gt;
&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
So you probably need a VAR statement here (as the ERROR message suggests BTW.)&lt;BR /&gt;
&lt;BR /&gt;
As an aside: why can't these error messages say which variable? Should be pretty much known ...</description>
      <pubDate>Thu, 14 Oct 2010 08:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-a-variable-not-specified-in-Model-for-reg-proc/m-p/16469#M325</guid>
      <dc:creator>Robert_Bardos</dc:creator>
      <dc:date>2010-10-14T08:24:51Z</dc:date>
    </item>
  </channel>
</rss>

