<?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 PROC REG - PLOT residual.* Error - ERROR 79-322: Expecting a *. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REG-PLOT-residual-Error-ERROR-79-322-Expecting-a/m-p/874280#M82707</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am trying to follow code in the SAS Certification Prep Guide: Statistical Business analyst, and it includes the following PROC REG code.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc reg data=revenue;
model revenue=adexpense;
output out=diag predicted=yhat residual=residual stdr=stderr_resid student=student;
plot residual.*adexpense modelht=3 statht=3;
plot student.*adexpense modelht=3 statht=3;
run;&lt;/PRE&gt;&lt;P&gt;But If I try and run this I get the following error&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;65   proc reg data=revenue;
66   model revenue=adexpense;
67   output out=diag predicted=yhat residual=residual stdr=stderr_resid student=student;
68   plot residual.*adexpense modelht=3 statht=3;
                                     -
                                     79
                                     76
NOTE: The previous statement has been deleted.
69   plot student.*adexpense modelht=3 statht=3;
                                    -
                                    79
                                    76
NOTE: The previous statement has been deleted.
ERROR 79-322: Expecting a *.
ERROR 76-322: Syntax error, statement will be ignored.
70   run;

&lt;/PRE&gt;&lt;P&gt;I have tried adding and removing spaces but to no avail. Anyone understand what is wrong.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 06 May 2023 18:34:17 GMT</pubDate>
    <dc:creator>Ar558a</dc:creator>
    <dc:date>2023-05-06T18:34:17Z</dc:date>
    <item>
      <title>PROC REG - PLOT residual.* Error - ERROR 79-322: Expecting a *.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REG-PLOT-residual-Error-ERROR-79-322-Expecting-a/m-p/874280#M82707</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am trying to follow code in the SAS Certification Prep Guide: Statistical Business analyst, and it includes the following PROC REG code.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc reg data=revenue;
model revenue=adexpense;
output out=diag predicted=yhat residual=residual stdr=stderr_resid student=student;
plot residual.*adexpense modelht=3 statht=3;
plot student.*adexpense modelht=3 statht=3;
run;&lt;/PRE&gt;&lt;P&gt;But If I try and run this I get the following error&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;65   proc reg data=revenue;
66   model revenue=adexpense;
67   output out=diag predicted=yhat residual=residual stdr=stderr_resid student=student;
68   plot residual.*adexpense modelht=3 statht=3;
                                     -
                                     79
                                     76
NOTE: The previous statement has been deleted.
69   plot student.*adexpense modelht=3 statht=3;
                                    -
                                    79
                                    76
NOTE: The previous statement has been deleted.
ERROR 79-322: Expecting a *.
ERROR 76-322: Syntax error, statement will be ignored.
70   run;

&lt;/PRE&gt;&lt;P&gt;I have tried adding and removing spaces but to no avail. Anyone understand what is wrong.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2023 18:34:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REG-PLOT-residual-Error-ERROR-79-322-Expecting-a/m-p/874280#M82707</guid>
      <dc:creator>Ar558a</dc:creator>
      <dc:date>2023-05-06T18:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG - PLOT residual.* Error - ERROR 79-322: Expecting a *.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REG-PLOT-residual-Error-ERROR-79-322-Expecting-a/m-p/874283#M82708</link>
      <description>&lt;P&gt;The PLOT statement requires that you type a slash before the first option and after the last plot request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;plot residual.*adexpense/modelht=3 statht=3;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 06 May 2023 18:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REG-PLOT-residual-Error-ERROR-79-322-Expecting-a/m-p/874283#M82708</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-05-06T18:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG - PLOT residual.* Error - ERROR 79-322: Expecting a *.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REG-PLOT-residual-Error-ERROR-79-322-Expecting-a/m-p/874323#M82709</link>
      <description>&lt;P&gt;You might be interested in reading about &lt;A href="https://blogs.sas.com/content/iml/2021/03/24/regression-diagnostic-plots-sas.html" target="_self"&gt;the diagnostic plots that PROC REG can produce automatically&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Documentation:&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_reg_syntax01.htm#statug.reg.procplots" target="_blank"&gt;SAS Help Center: PROC REG Statement&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For most SAS procedures, you just need to enable ODS graphics and use the PLOTS= option to ask the procedure to produce standard plots.&lt;/P&gt;
&lt;P&gt;For plots that are not created automatically, you can often use the OUTPUT statement (as in your program) and then use PROC SGPLOT to create the plots.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The built-in ODS graphics do not contain all of the options on the PLOT statement, but the output looks much better. Good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 10:34:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REG-PLOT-residual-Error-ERROR-79-322-Expecting-a/m-p/874323#M82709</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-05-07T10:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG - PLOT residual.* Error - ERROR 79-322: Expecting a *.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REG-PLOT-residual-Error-ERROR-79-322-Expecting-a/m-p/874334#M82710</link>
      <description>&lt;P&gt;Many Thanks! Should have tried that. You just take code in a text book as gospel!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 15:14:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REG-PLOT-residual-Error-ERROR-79-322-Expecting-a/m-p/874334#M82710</guid>
      <dc:creator>Ar558a</dc:creator>
      <dc:date>2023-05-07T15:14:52Z</dc:date>
    </item>
  </channel>
</rss>

