Chapter6_SASexamples

62 825 511 1 2 082 108 89 2 1 063 560 352 2 2 068 25

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: 5 511 1 2 0.82 108 89 2 1 0.63 560 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; data berkeley; input dept gender admission count; datalines; 1 11 511 1 10 314 1 21 89 1 20 19 2 11 352 2 10 208 2 21 17 2 20 8 3 11 120 3 10 205 3 21 201 3 20 392 4 11 262 4 10 155 4 21 255 4 20 120 5 11 53 5 10 138 5 21 94 5 20 299 6 11 16 6 10 256 6 21 23 6 20 318 proc freq order=data; weight count; tables gender*admission / chisq expected measures cmh1; /* dept 1 is deleted */ data berkeley; input dept gender pct n y; logcases=log(n); y2 = n-y; datalines; 2 1 0.63 560...
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