Chapter6_SASexamples

63 560 352 2 2 068 25 17 3 1 037 325 120 3 2 034 593

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 352 2 2 0.68 25 17 3 1 0.37 325 120 3 2 0.34 593 201 4 1 0.63 417 262 4 2 0.68 375 255 5 1 0.28 191 53 5 2 0.24 393 94 6 1 0.06 272 16 6 2 0.07 341 23 ; proc genmod; class dept gender; model y/n = dept gender/ r dist=bin link=logit lrci alpha=.01 type3; proc genmod; class dept gender; model y/n = dept/ r dist=bin link=logit lrci alpha=.01 type3; /* center: 1,2,3,4,5 group: 1 trt; 2 placebo response: 1 success; 2 failure */ data cmh; input center treat response count ; datalines; 1110 1125 1210 1229 2111 2 1 2 12 2210 2 2 2 10 3110 3 1 2 10 3210 3227 4116 4123 4212 4226 5115 5129 5212 5 2 2 12 ; proc freq; weight count; tables center*treat*response / cmh chisq; data cmh; input center treat response y1 y2 ; n = y1+y2; datalines; 1110 5 1210 9 2111 12 2210 10 3110 10 3210 7 4116 3 4212 6 5115 9 5212 12 ; proc genmod; class center treat; model y1/n = center treat/ r dist=bin link=logit lrci alpha=.01 type3...
View Full Document

This note was uploaded on 09/15/2012 for the course AMS 573 taught by Professor Songwu during the Spring '12 term at SUNY Stony Brook.

Ask a homework question - tutors are online