Hello all,
I am trying to gather the means and standard errors of harvest yields from my data. I have entered the following code...
proc sort data=WORK.SSG2016harvests;
by legume trt harvest;
proc means data=WORK.SSG2016harvests mean stderr;
var sorgyd;
by harvest;
output out = c mean=sorgyd sorgSE;
run;
However, I keep receiving the following error message when I try to run it...
ERROR: Data set WORK.SSG2016HARVESTS is not sorted in ascending sequence. The current BY group has Harvest = Total and the next BY group has Harvest = 1.
There are 5 different harvests labeled as 1, 2, 3, 4, total.
I am stumped on how to solve this, and appreciate some input!
Thank you!