I have been trying to do logistic regression with interactions. Since this would have required a lot of dummy coding in proc logistic, I used proc genmod.
proc genmod;
class ahsex(ref=first) ah66a qtype &smok_ &alco_;
model jncht= wstrs wstrs*ahsex ahsex ah66a ahage &smok_ &alco_ WLTHINDF QTYPE/ error=bin link=logit type3;
run;
Another way to encode the interaction term and the main effects would be using "wstrs|ahsex". This equals "wstrs wstrs*ahsex ahsex".
The ref option could be replaced with (ref="1") . Specifying more than one REF= variable option in the CLASS statement could be a problem.
In case you are wondering, &smok_ refer to the macro variable I created earlier in the code as follows:
%let &sm0k= smok1 smok2 smok3 smokm;
Subscribe to:
Post Comments (Atom)
4 comments:
Thanks :)
--
http://www.miriadafilms.ru/ купить кино
для сайта sasonunix.blogspot.com
hermes bags
nike sneakers for men
cheap jordans
kyrie 5
nike air max 2018
supreme hoodie
nike air max 97
supreme clothing
golden gooses sneakers
nike air max 2017
you can find out more other you can try here Chrome-Hearts Dolabuy Discover More Your Domain Name
replica zara bags replica hermes bag g1q98d8e89 replica bags manila click this g2v06p3y83 bag replica high quality replica evening bags official statement y1r26l6x57 louis vuitton fake replica bags joy
Post a Comment