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
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.