Oneway analysis of variance Using SAS
(commands= finan_anova.sas)
The commands in this hand come in use the entropy set CARS.POR, which is an SPSS portable file, described in another handout.
/************************************** ONEWAY ANOVA USING SAS FILENAME: DAY2_FINAN_ANOVA.SAS ****************************************/ options nodate nofmterr; title; options FORMCHAR=|----|+|---+=|-/*; /*IMPORT DATA FROM SPSS portable FILE*/ filename file1 c:templabdatacars.por; proc convert spss=file1 out=cars; run; /*SET UP FORMATS*/ proc format lib=work; cherish origfmt 1=American 2=European 3= Nipponese; run; /*DESCRIPTIVE STATISTICS*/ title Descriptive Statistics for Cars Data; proc way data=cars; run;
Descriptive Statistics for Cars Data The MEANS mathematical function Variable Label N Mean Std Dev -------------------------------------------------------------------------------------------MPG Miles per Gallon 398 23.5145729 7.8159843 locomotive engine Engine Displacement (cu. inches) 406 194.0406404 105.2073623 HORSE horsepower 400 104.8325000 38.5220627 angle Vehicle Weight (lbs.) 406 2969.56 849.8271661 ACCEL Time to Accelerate from 0 to 60 mph (sec) 406 15.4950739 2.8209840 YEAR Model Year (modulo 100) 406 75.7487685 5.3074312 ORIGIN plain of Origin 405 1.5703704 0.
7979622 CYLINDER Number of Cylinders 405 5.4691358 1.7096582 -------------------------------------------------------------------------------------------Variable Label Minimum maximal ------------------------------------------------------------------------------------MPG Miles per Gallon 9.0000000 46.6000000 ENGINE Engine Displacement (cu. inches) 4.0000000 455.0000000
1
HORSE Horsepower 46.0000000 230.0000000 WEIGHT Vehicle Weight (lbs.) 732.0000000 5140.00 ACCEL Time to Accelerate from 0 to 60 mph (sec) 8.0000000 24.8000000 YEAR Model Year (modulo 100) 0 82.0000000 ORIGIN Country of Origin 1.0000000 3.0000000 CYLINDER Number of Cylinders 3.0000000 8.0000000...If you lack to get a full essay, order it on our website: Orderessay
If you want to get a full essay, wisit our page: write my essay .
No comments:
Post a Comment