Chapter6_SASexamples

01 type3 proc genmod class center treat model y1n

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: ; proc genmod; class center treat; model y1/n = center/ r dist=bin link=logit lrci alpha=.01 type3; data alcohol; input level alconum npresent nabsent; n = npresent + nabsent; if level>0 then intercept=1; datalines; 10 48 17066 2 0.5 38 14464 3 1.5 5 788 44 1 126 57 1 37 ; proc genmod; class level; model npresent/n= intercept/ dist=bin link=logit lrci alpha=.01 type3; proc genmod; class level; model npresent/n= level/ dist=bin link=logit lrci alpha=.01 type3; proc genmod; model npresent/n= alconum/ dist=bin link=logit lrci alpha=.01 type3; run; /* change 1 to 0 for bin at more than 6 drinks */ data alcohol; input level alconum npresent nabsent; n = npresent + nabsent; if level>0 then intercept=1; datalines; 10 48 17066 2 0.5 38...
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