data _NULL_;
input condition1 $ logcount1 condition2 $ logcount2 condition3 $ logcount3;
datalines;
Plastic 7.66 Plastic 6.98 Plastic 7.80
Vacuum 5.26 Vacuum 5.44 Vacuum 5.80
Mixed 7.41 Mixed 7.41 Mixed 7.04
CO2 3.51 CO2 2.91 CO2 3.66
;
run;
proc print data=meat;
run;
I am required to find the mean and standard deviation of each line here and summarize them using PUT statements. I know how to use PUT statements but for the love of GOD I can't figure out how to get each mean and STD. I have tried putting avg = mean (of logcount1-logcount3
) in multiple places but if I put it after datalines; I just get an error and if I put it before datalines I get weird output behavior.