cochran-armitage - * EdPsch 590at/Psych 593ca * Example of...

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

View Full Document Right Arrow Icon
* EdPsch 590at/Psych 593ca * Example of cochran-armitage test of trend * Framingham Heart Study (Agresti, 1990, p 93); options nocenter nodate; data frame; input bp $ heart $ count bpguess @@ ; label bp='Blood Pressure' heart='Heart Disease Present?'; cards; <117 yes 3 1 <117 no 153 1 117-126 yes 17 2 117-126 no 235 2 127-136 yes 12 3 127-136 no 272 3 137-146 yes 16 4 137-146 no 255 4 147-156 yes 12 5 147-156 no 127 5 157-166 yes 8 5.5 157-166 no 77 5.5 167-186 yes 16 8 167-186 no 83 8 >186 yes 8 10 >186 no 35 10 ; proc freq order=data; weight count; tables heart*bp /chisq nopercent norow trend ; title 'I X 2 linear trend test -- Cochran-Armitage (equally spaced scores)'; run; proc freq order=data; weight count; tables heart*bp /chisq nopercent norow trend score=ridit; title 'I X 2 linear trend test -- Cochran-Armitage (scores=midranks)'; run; proc freq order=data; weight count; tables heart*bpguess /chisq nopercent norow trend ; title 'I X 2 linear trend test -- Cochran-Armitage (crude guess of scores)';
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

cochran-armitage - * EdPsch 590at/Psych 593ca * Example of...

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

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