t_onesample

t_onesample - proc ttest H0 = 100 alpha =.10 data =one var...

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

View Full Document Right Arrow Icon
1 Sample t-test in SAS options nodate pageno= 1 ; goptions colors =(none); title1 'One sample t-test in SAS' ; data one; infile 'C:\gesell.txt' ; input name $ age score; run ; proc print data =one; run ; One sample t-test in SAS 1 Obs name age score 1 abbie 15 95 2 john 26 71 3 david 10 83 4 ruby 9 91 5 fred 15 102 6 julie 20 87 7 sam 18 93 8 betty 11 100 9 lizzy 8 104 10 nancy 20 94 11 george 7 113 12 sarah 9 96 13 gail 10 83 14 zach 11 84 15 curtis 11 102 16 larry 10 100 17 pat 12 105 18 joe 42 57 19 janet 17 121 20 rube 11 86 21 andy 10 100 /* Checking the normality of data */ proc univariate data =one; - 1 -
Background image of page 1

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

View Full Document Right Arrow Icon
1 Sample t-test in SAS var score; histogram score/ normal ; qqplot score; run ; 6 0 7 5 9 0 1 0 5 1 2 0 0 1 0 2 0 3 0 4 0 5 0 P e r c e n t s c o r e - 2 - 1 0 1 2 5 0 6 0 7 0 8 0 9 0 1 0 0 1 1 0 1 2 0 1 3 0 s c o r e N o r ma l Q u a n t i l e s - 2 -
Background image of page 2
1 Sample t-test in SAS /* Testing whether the mean score is 100 */
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: proc ttest H0 = 100 alpha = .10 data =one; var score; run ; One sample t-test in SAS 5 The TTEST Procedure Variable: score N Mean Std Dev Std Err Minimum Maximum 21 93.6667 13.9869 3.0522 57.0000 121.0 Mean 90% CL Mean Std Dev 90% CL Std Dev 93.6667 88.4025 98.9308 13.9869 11.1609 18.9891 DF t Value Pr > |t| 20 -2.08 0.0511 /* Change the alpha level to 0.05 */ proc ttest H0 = 100 alpha = .05 data =one; var score; run ; One sample t-test in SAS 6 The TTEST Procedure Variable: score N Mean Std Dev Std Err Minimum Maximum 21 93.6667 13.9869 3.0522 57.0000 121.0 Mean 95% CL Mean Std Dev 95% CL Std Dev 93.6667 87.2999 100.0 13.9869 10.7008 20.1981 DF t Value Pr > |t| 20 -2.08 0.0511- 3 -...
View Full Document

{[ snackBarMessage ]}

Page1 / 3

t_onesample - proc ttest H0 = 100 alpha =.10 data =one var...

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