Chap2-SASproblems

Chap2-SASproblems - CHAPTER 2 Problem 1 options ps=64 ls=80...

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

View Full Document Right Arrow Icon
CHAPTER 2, Problem 1 options ps=64 ls=80; data in; input sbp; label sbp = 'systolic blood pressure'; cards; 156 85 103 92 108 128 ; run; title 'Summary Statistics'; proc univariate; var sbp; run; _______________________________________________________________________________ Summary Statistics 2 16:45 Tuesday, September 25, 2007 The UNIVARIATE Procedure Variable: sbp (systolic blood pressure) Moments N 6 Sum Weights 6 Mean 112 Sum Observations 672 Std Deviation 26.1457454 Variance 683.6 Skewness 1.02058769 Kurtosis 0.50853294 Uncorrected SS 78682 Corrected SS 3418 Coeff Variation 23.3444155 Std Error Mean 10.6739558 Basic Statistical Measures Location Variability Mean 112.0000 Std Deviation 26.14575 Median 105.5000 Variance 683.60000 Mode . Range 71.00000 Interquartile Range 36.00000 Tests for Location: Mu0=0
Background image of page 1

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

View Full DocumentRight Arrow Icon
Test -Statistic- -----p Value------ Student's t t 10.49283 Pr > |t| 0.0001 Sign M 3 Pr >= |M| 0.0313 Signed Rank S 10.5 Pr >= |S| 0.0313 Quantiles (Definition 5) Quantile Estimate 100% Max 156.0 99% 156.0 95% 156.0 90% 156.0 75% Q3 128.0 50% Median 105.5 25% Q1 92.0 10% 85.0 5% 85.0 1% 85.0 0% Min 85.0 Extreme Observations ----Lowest---- ----Highest--- Value Obs Value Obs 85 2 92 4 92 4 103 3 103 3 108 5 108 5 128 6 128 6 156 1 CHAPTER 2, Problem 2
Background image of page 2
options ps=64 ls=80; data in; input min; if 110 < min < 119 then mincat = '119 or less'; else if 120 le min < 129 then mincat = '120-129'; else if 130 le min < 139 then mincat = '130-139'; else if 140 le min < 149 then mincat = '140-149'; else if 150 le min < 159 then mincat = '150-159'; else if 160 le min < 169 then mincat = '160-169'; cards; 113 118 121 123 126 128 130 135 136 137 138 139 140 140 142 142 142 143 155 157 157 158 159 164 ; run; title 'Frequency Distribution Tables'; proc freq data=in; tables mincat; run; _______________________________________________________________________________ Frequency Distribution Tables 2 18:43 Tuesday, September 25, 2007
Background image of page 3

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

View Full DocumentRight Arrow Icon
The FREQ Procedure Cumulative Cumulative mincat Frequency Percent Frequency Percent ---------------------------------------------------------------- 119 or less 2 9.09 2 9.09 120-129 4 18.18 6 27.27 130-139 5 22.73 11 50.00 140-149 6 27.27 17 77.27 150-159 4 18.18 21 95.45 160-169 1 4.55 22 100.00 Frequency Missing = 2 CHAPTER 2, Problem 3 options ps=64 ls=80;
Background image of page 4
data in; input scores; label scores = 'Standardized Test Scores'; cards; 91 94 83 84 46 90 77 85 ; run; title 'Summary Statistics'; proc means; var scores; run; _______________________________________________________________________________ Summary Statistics 4 22:59 Tuesday, September 25, 2007 The MEANS Procedure Analysis Variable : scores Standardized Test Scores N Mean Std Dev Minimum Maximum ----------------------------------------------------------------- 8 81.2500000 15.2104288 46.0000000 94.0000000 ----------------------------------------------------------------- CHAPTER 2, Problem 4 options ps=64 ls=80; data in; input CD4;
Background image of page 5

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

View Full DocumentRight Arrow Icon
label CD4 = 'CD4 counts'; cards; 75 135 210 240 86 100 125
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 19

Chap2-SASproblems - CHAPTER 2 Problem 1 options ps=64 ls=80...

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

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