1) Also using the SASHELP.IRIS dataset, use PROC REPORT to generate a table with the mean petal width (variable = PetalWidth) for each iris species (variable = Species). Your output should look something like this:
My code. I'm using the "Thirty Three Tricks with PROC REPORT: A Quick Introduction to the Powerful REPORT Procedure" to help write my code.
proc report data= sashelp.iris;
columns Iris species, petelwidth;
define Iris species 'setosa';
define Iris species 'versicolor';
define Iris species 'virginica';
define petelwidth analysis mean species/petelwidth;
run;
This is my errors
Hello,
You should use the variable name in your code (and NOT the label of the variable) :
Something like this :
proc report data = sashelp.iris;
columns Species (Sum Min Max Range Mean Std),PetalWidth;
define Species / group;
define PetalWidth / analysis mean;
run;
Koen
Hello,
You should use the variable name in your code (and NOT the label of the variable) :
Something like this :
proc report data = sashelp.iris;
columns Species (Sum Min Max Range Mean Std),PetalWidth;
define Species / group;
define PetalWidth / analysis mean;
run;
Koen
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.