CSULB_STAT475_handout10

CSULB_STAT475_handout10 - STAT 475 Chapter 9 PRODUCING...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
STAT 475 Chapter 9 PRODUCING DESCRIPTIVE STATISTICS To summarize descriptive statistics for numeric variables, use PROC MEANS . By default, this procedure computes the n-count (the number of non-missing values), mean, standard deviation, minimum and maximum values for every numeric variable in a data set. Example. Age, and total shoulder scores pre-operatively and at one year are recorded for eight patients with repaired shoulders. Total scores are given on 100-point scale. They include evaluations of shoulder pain, rotation, and strength. The higher this score, the more functional the shoulder is. The raw data are The following code computes the n-count, mean, median, standard deviation, min and max for the three numeric variables. data shoulder; input ID $ Sex $ Age Pre_score Year1_score; cards; 001 female 53 62 89 002 female 59 66 95 003 female 56 68 95 004 male 68 55 98 005 male 56 53 98 006 female 55 60 93 007 female 64 69 93 008 male 63 57 93 ; proc means; run; The output is 1 Age at Total Score Total Score Pt ID Sex procedure pre-operatively at 1 year 001 Female 53 62 89 002 Female 59 66 95 003 Female 56 68 95 004 Male 68 55 98 005 Male 56 53 98 006 Female 55 60 93 007 Female 64 69 93 008 Male 63 57 93
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The MEANS Procedure Variable N Mean Std Dev Minimum Maximum ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Age 8 59.2500000 5.2304056 53.0000000 68.0000000 Pre_score 8 61.2500000 6.0415230 53.0000000 69.0000000 Year1_score 8 94.2500000 2.9640706 89.0000000 98.0000000 ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Other statistics may be computed if they are requested. Example. In the shoulder example, the following code requests the n-count, mean, median, standard deviation, minimum, maximum, and range=maximum-minimum. proc means n mean median std min max range; run ; The output is The MEANS Procedure Variable N Mean Median Std Dev Minimum Maximum ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Age 8 59.2500000 57.5000000 5.2304056 53.0000000 68.0000000 Pre_score 8 61.2500000 61.0000000 6.0415230 53.0000000 69.0000000 Year1_score 8 94.2500000 94.0000000
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

CSULB_STAT475_handout10 - STAT 475 Chapter 9 PRODUCING...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online