Answered step by step
Verified Expert Solution
Question
1 Approved Answer
data smoking; input city $ smoking $ yes no @@; cases = yes + no; smoking1 = 0; if smoking = Yes then smoking1 =
data smoking; input city $ smoking $ yes no @@; cases = yes + no; smoking1 = 0; if smoking = "Yes" then smoking1 = cards; Beijing Yes 126 100 Harbin Yes Beijing No 35 61 Harbin No Shanghai Yes 908 688 Zhengzhou Yes Shanghai No 497 807 Zhengzhou No Shenyang Yes 913 747 Taiyuan Yes Shenyang No 336 598 Taiyuan No Nanjing Yes 235 172 Nanchang Yes Nanjing No 58 121 Nanchang No ; run; 1; 402 121 182 72 60 11 104 21 308 215 156 98 99 43 89 36 proc genmod data = smoking; class city ; model yes/cases = city smoking1 / dist=bin link=logit ; run
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started