21.08.2013 Views

Generalized Linear Model for Binary Data - Reocities

Generalized Linear Model for Binary Data - Reocities

Generalized Linear Model for Binary Data - Reocities

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

data obstats1;<br />

set obstat1 (rename=(yvar1=y yvar2=n));<br />

pred1=pred*n;<br />

run;<br />

/* Using Probit model */<br />

proc genmod data=binary;<br />

make 'OBSTATS' out=obstat2;<br />

model killed/n = dose / dist=bin<br />

link=probit<br />

lrci<br />

waldci<br />

obstat;<br />

run;<br />

data obstats2;<br />

set obstat2 (rename=(yvar1=y yvar2=n));<br />

pred2=pred*n;<br />

run;<br />

/* Using extrme value model */<br />

proc genmod data=binary;<br />

make 'OBSTATS' out=obstat3;<br />

model killed/n = dose / dist=bin<br />

link=cll<br />

lrci<br />

waldci<br />

obstat;<br />

run;<br />

data obstats3;<br />

set obstat3 (rename=(yvar1=y yvar2=n));<br />

pred3=pred*n;<br />

run;<br />

data comp;<br />

merge obstats1 obstats2 obstats3;<br />

keep y n pred1 pred2 pred3;<br />

run;<br />

proc print;<br />

title ‘Comparison of various dose-response models <strong>for</strong> the beetle<br />

mortality data’;<br />

run;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!