t_paired - N Mean Std Dev Std Err Minimum Maximum 15 2.4327...

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

View Full Document Right Arrow Icon
Matched Pairs t-test in SAS options nodate pageno= 1 ; goptions colors =(none); title 'Analysis of Aggressive behaviors - Example 7.7' ; data moon; input patient aggmoon aggother; aggdiff = aggmoon - aggother; datalines ; 1 3.33 0.27 2 3.67 0.59 3 2.67 0.32 4 3.33 0.19 5 3.33 1.26 6 3.67 0.11 7 4.67 0.3 8 2.67 0.4 9 6 1.59 10 4.33 0.6 11 3.33 0.65 12 0.67 0.69 13 1.33 1.26 14 0.33 0.23 15 2 0.38 ; run ; - 1 -
Background image of page 1

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

View Full DocumentRight Arrow Icon
Matched Pairs t-test in SAS /* check normality of differences */ symbol value =circle; proc univariate data =moon; var aggdiff; qqplot ; run ; - 2 - 1 . 5 - 1 - 0 . 5 0 0 . 5 1 1 . 5 2 - 1 0 1 2 3 4 5 a g g d i f f N o r ma l Q u a n t i l e s - 2 -
Background image of page 2
Matched Pairs t-test in SAS /* code a) tests if the differences are equal to 0 */ proc ttest H0 = 0 alpha = 0.10 data =moon; paired aggmoon*aggother; run ; Analysis of Aggressive behaviors - Example 7.7 3 The TTEST Procedure Difference: aggmoon - aggother
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: N Mean Std Dev Std Err Minimum Maximum 15 2.4327 1.4603 0.3771 -0.0200 4.4100 Mean 90% CL Mean Std Dev 90% CL Std Dev 2.4327 1.7686 3.0968 1.4603 1.1227 2.1316 DF t Value Pr > |t| 14 6.45 <.0001 /* code b) another way to test the same thing as code a, you dont need both codes, just a or b! */ proc ttest H0 = alpha = 0.10 data =moon; var aggdiff; run ; Analysis of Aggressive behaviors - Example 7.7 4 The TTEST Procedure Variable: aggdiff N Mean Std Dev Std Err Minimum Maximum 15 2.4327 1.4603 0.3771 -0.0200 4.4100 Mean 90% CL Mean Std Dev 90% CL Std Dev 2.4327 1.7686 3.0968 1.4603 1.1227 2.1316 DF t Value Pr > |t| 14 6.45 <.0001- 3 -...
View Full Document

This note was uploaded on 02/20/2012 for the course STAT 501 taught by Professor Staff during the Spring '08 term at Purdue University-West Lafayette.

Page1 / 3

t_paired - N Mean Std Dev Std Err Minimum Maximum 15 2.4327...

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