Hello all,
I am trying to gather the means and standard errors of my treatments for my data. I have entered the following code...
proc means data=WORK.yr1_2016 mean stderr;
var totyd sorgyd weedyd legyd;
by leg;
output out = b mean=totalydX sorgydX weedydX legydX stderr=totalydSE sorgydSE weedydSE legydSE;
run;
However, I keep receiving the following error message when I try to run it...
Also note, if you switch from BY to CLASS:
class leg;
The CLASS statement produces extra summarizations that you would not otherwise get. If you want just a summarization for each LEG, you have to apply the nway option:
proc means data=WORK.yr1_2016 nway;
@Martina4 wrote:
This experiment is a randomized split-plot arrangement. There are six main plots listed under "leg" and the six plots are ALF, BFT, IBF, PPC, RD, RHL. And then there are four split plots listed under CC and these are 1, 2, 3, and 4. There is a significant leg*CC interaction if this makes any difference in the above coding.
While this description doesn't directly indicate any sorting, you can also try
by leg notsorted;
This requires all the RHL to be consecutive and all the ALF to be consecutive, and so on.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.