Help using Base SAS procedures

PROC RSREG: Error in PLOTS command

Accepted Solution Solved
Reply
New Contributor
Posts: 3
Accepted Solution

PROC RSREG: Error in PLOTS command

Hi.

1. Consider a 2-year trial to compare 17 treatments. The treatments were observed in randomized complete block design with 3 block was used. Both year and the block are random effects. Test in each year did in one different location

I use this analysis method:

 

data=work.test2;
input year location treat rep Cycloxidim1 Arrat Cycloxidim2 OHC NLATOT WLATOT BY SY;
cards;
...
;
PROC RSREG DATA=Work.Test2 plots=(DIAGNOSTICS RIDGE) /noprint;
MODEL BY SY = year treat rep / LACKFIT ;
RIDGE MAX MIN;
  run;

and I see these problems in log window;

52   PROC RSREG DATA=Work.Test2 PLOTS=(DIAGNOSTICS RIDGE) /noprint;
                                -----
                                22
                                76
ERROR 22-322: Syntax error, expecting one of the following: ;, (, DATA, DEBUG, EPSILON, NOPRINT,
              OUT.
ERROR 76-322: Syntax error, statement will be ignored.
53   MODEL BY_T_HA_  SY_T_HA_ = year treat rep / LACKFIT ;
ERROR: No data set open to look up variables.
ERROR: No data set open to look up variables.
ERROR: No data set open to look up variables.
ERROR: No data set open to look up variables.
ERROR: No data set open to look up variables.
54   RIDGE MAX MIN;
55     run;

Please help me to Know my fault in writing sas codes.

 2. Also I want to find linear, quardratic and cubic relationship between BY and SY with NLATOT WLATOT Cycloxidim1 for Treatment 3 to 10.

thanks.


Accepted Solutions
Solution
‎12-26-2015 11:16 PM
SAS Super FREQ
Posts: 8,868

Re: PROC RSREG: Error in PLOTS command

Hi, double check the RSREG documentation and see what PLOTS= options were supported in your version of SAS/STAT. The STAT procedures are always being enhanced to support ODS GRAPHICS so if you have an older version of SAS/STAT, there is a possibility that your PLOTS= options are not for your version.
cynthia

View solution in original post


All Replies
Super Contributor
Posts: 490

Re: PROC RSREG: Error in PLOTS command

[ Edited ]

The forward slash, delete it and you should not get error

 

...
PROC RSREG DATA=Work.Test2 PLOTS=(DIAGNOSTICS RIDGE) noprint;
...

 

New Contributor
Posts: 3

Re: PROC RSREG: Error in PLOTS command

Posted in reply to mohamed_zaki
I delete slash and correct command but still SAS show the same error?
Solution
‎12-26-2015 11:16 PM
SAS Super FREQ
Posts: 8,868

Re: PROC RSREG: Error in PLOTS command

Hi, double check the RSREG documentation and see what PLOTS= options were supported in your version of SAS/STAT. The STAT procedures are always being enhanced to support ODS GRAPHICS so if you have an older version of SAS/STAT, there is a possibility that your PLOTS= options are not for your version.
cynthia
🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 307 views
  • 1 like
  • 3 in conversation