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.
The forward slash, delete it and you should not get error
...
PROC RSREG DATA=Work.Test2 PLOTS=(DIAGNOSTICS RIDGE) noprint;
...
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.