{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Means procedure variable n mean std dev minimum

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ƒƒƒƒƒƒƒ HireDate 69 9812.78 1615.44 7318.00 12690.00 Salary 69 52144.93 25521.78 21000.00 112000.00 ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ 29 30 Selecting Variables Selecting Variables LastName HireDate LastName 07NOV1992 BEAUMONT •The VAR statement restricts the variables processed by PROC MEANS. crew FirstName FirstName SALLY T. Location Phone EmpID JobCode Salary Location Phone EmpID JobCode Salary LONDON 1132 E00525 PILOT1 72000 1151 E02466 FLTAT3 41000 BARBARA ANN FRANKFURT 1163 E00802 PILOT2 81000 12MAY1985 BERGAMASCO CHRISTOPHER CARY 04AUG1988 BETHEA proc means data=crew; var Salary; title 'Salary Analysis'; run; •General form of the VAR statement: Salary Analysis VAR SAS-variable(s); The MEANS Procedure Analysis Variable : Salary N Mean Std Dev Minimum Maximum ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ 69 52144.93 25521.78 21000.00 112000.00 ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ 31 32 8 Grouping Observations Grouping Observations LastName HireDate LastName •The CLASS statement in the MEANS procedure groups the observations of the SAS data set for analysis. 07NOV1992 BEAUMONT crew FirstName FirstName SALLY T. Location Phone EmpID JobCode Salary Location Phone EmpID JobCode Salary LONDON 1132 E00525 PILOT1 72000 1151 E02466 FLTAT3 41000 BARBARA ANN FRANKFURT 1163 E00802 PILOT2 81000 12MAY1985 BERGAMASCO CHRISTOPHER CARY 04AUG1988 BETHEA proc means data=crew maxdec=2; var Salary; class JobCode; title 'Salary by Job Code'; run; •General form of the CLASS statement: CLASS SAS-variable(s); The MAXDEC= option controls the number of decimal places displayed in the output. 33 34 Grouping Observations Salary by Job Code The MEANS Procedure Analysis Variable : Salary Lab Exercises 15 Job N Code Obs N Mean Std Dev Maximum Minimum ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ FLTAT1 14 14 25642.86 2951.07 30000.00 21000.00 FLTAT2 18 18 35111.11 1906.30 32000.00 FLTAT3 12 12 44250.00 2301.19 41000.00 8 8 69500.00 2976.10 65000.00 73000.00 PILOT2 9 9 80111.11 3756.48 75000.00 Creating Basic Summary Reports Requesting Specific Statistics Through PROC MEANS 48000.00 PILOT1 Exercise 3 & 4 38000.00 86000.00 PILOT3 8 8 99875.00 7623.98 92000.00 112000.00 ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ 35 36 9 UNIVARIATE Procedure UNIVARIATE Procedure • Computes summary statistics for numerical data • Tests the distribution against known distributions • Displays histograms, box plots, probability plots, etc. • General form: • You can add options to the PROC UNIVARIATE stat...
View Full Document

{[ snackBarMessage ]}