









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Material Type: Assignment; Professor: Niu; Class: STAT IN APPLCTNS III; Subject: STATISTICS; University: Florida State University; Term: Unknown 1989;
Typology: Assignments
1 / 17
This page cannot be seen from the preview
Don't miss anything!
Home President Busing Yes (1) No (2) Don’t Know(3) Yes Yes 41.945197 63.760672 0. No 69.087698^ 159.64184 0. Don't Know 1.9671055^ 15.597485 0. No Yes 1.0548033 5.9451967 2.602E- No 4.9123022^ 42.087698 6.766E- Don't Know 0.0328945 0.9671055 2.562E- Don’ Know Yes 5.631E-10 3.2941318 0. No 1.0426E-09 9.2704591 0. Don't Know 1.427E-11 0.4354091 0.
data prob8_2; input P B D count; datalines; 1 1 1 41 1 1 2 65 1 1 3 0 1 2 1 71 1 2 2 157 1 2 3 1 1 3 1 1 1 3 2 17 1 3 3 0 2 1 1 2 2 1 2 5 2 1 3 0
(^) jk i i | k j | k k k k jk k i k
k jk i jk k i
k k i jk i jk k ij ijk
ik | j i | j k | j (^) ij i j
Model DF G^2 Prob Model (AS+GI+AI+SI+AG): backward selection 6 1.82 0. Model (AS+GI+AI+SI+SG): backward selection 6 4.7 0. Model (AS+GI+AI+AG+SG): backward selection 6 4.05 0. Model (AS+GI+SI+AG+SG): backward selection 6 8.17 0. Model (AS+AI+SI+AG+SG): backward selection 6 339.33 <.
clear; options linesize= 80 ; options pagesize= 60 ; options missing='M'; title='Homework 9.2'; data prob9_2; input A $ S $ G $ I $ count; datalines; <30 <5 <260 die 50 <30 <5 <260 live 315 <30 <5 >260 die 24 <30 <5 >260 live 4012 <30 >5 <260 die 9 <30 >5 <260 live 40 <30 >5 >260 die 6 <30 >5 >260 live 459
30 <5 <260 die 41 30 <5 <260 live 147 30 <5 >260 die 14 30 <5 >260 live 1594 30 >5 <260 die 4 30 >5 <260 live 11 30 >5 >260 die 1 30 >5 >260 live 124 ; ods html body="STA5168-hw5-prob9.2.xls"; /part a / /AGIS/ proc catmod data=prob9_2; weight count; model ASGI=response/noiter noresponse nodesign; loglin A|S|G|I; title2 'Model (AGIS): Loglinear'; run ; /AGI,AIS,AGS,GIS/ proc catmod data=prob9_2; weight count; model ASGI=response/noiter noresponse nodesign; loglin A|G|I A|I|S A|G|S G|I|S; title2 'Model (AGI,AIS,AGS,GIS): Loglinear'; run ; /AG,AI,AS,GI,GS,IS/ proc catmod data=prob9_2; weight count; model ASGI=response/noiter noresponse nodesign; loglin A|G A|I A|S G|I G|S I|S; title2 'Model (AG,AI,AS,GI,GS,IS): Loglinear'; run ; /rerun model/ /AS,G,I/ proc catmod data=prob9_2; weight count; model ASGI=response/noiter noresponse nodesign; loglin A|S G I; title2 'Model (AS,G,I): Loglinear'; run ;
model ASGI=response/noiter noresponse nodesign; loglin A|S G|I A|I; title2 'Model (AS+GI+AI): forward selection'; run ; /AS+GI+SG/ proc catmod data=prob9_2; weight count; model ASGI=response/noiter noresponse nodesign; loglin A|S G|I S|G; title2 'Model (AS+GI+SG): forward selection'; run ; /AS+GI+SI/ proc catmod data=prob9_2; weight count; model ASGI=response/noiter noresponse nodesign; loglin A|S G|I S|I; title2 'Model (AS+GI+SI): forward selection'; run ; /AS+GI+AI+AG/ proc catmod data=prob9_2; weight count; model ASGI=response/noiter noresponse nodesign; loglin A|S G|I A|I A|G; title2 'Model (AS+GI+AI+AG): forward selection'; run ; /AS+GI+AI+SI/ proc catmod data=prob9_2; weight count; model ASGI=response/noiter noresponse nodesign; loglin A|S G|I A|I S|I; title2 'Model (AS+GI+AI+SI): forward selection'; run ; /AS+GI+AI+SI+AG/ proc catmod data=prob9_2; weight count; model ASGI=response/noiter noresponse nodesign; loglin A|S G|I A|I S|I A|G; title2 'Model (AS+GI+AI+SI+AG): forward selection'; run ; /AS+GI+AI+SI+SG/ proc catmod data=prob9_2; weight count; model ASGI=response/noiter noresponse nodesign; loglin A|S G|I A|I S|I S|G; title2 'Model (AS+GI+AI+SI+SG): forward selection'; run ; /AS+GI+AI+SI+AG+SG/ proc catmod data=prob9_2; weight count; model ASGI=response/noiter noresponse nodesign; loglin A|S G|I A|I S|I A|G S|G; title2 'Model (AS+GI+AI+SI+AG+SG): forward selection';
run ; /AS+GI+AI+SI+AG/ proc catmod data=prob9_2; weight count; model ASGI=response/noiter noresponse nodesign; loglin A|S G|I A|I S|I A|G; title2 'Model (AS+GI+AI+SI+AG): backward selection'; run ; /AS+GI+AI+SI+SG/ proc catmod data=prob9_2; weight count; model ASGI=response/noiter noresponse nodesign; loglin A|S G|I A|I S|I S|G; title2 'Model (AS+GI+AI+SI+SG): backward selection'; run ; /AS+GI+AI+AG+SG/ proc catmod data=prob9_2; weight count; model ASGI=response/noiter noresponse nodesign; loglin A|S G|I A|I A|G S|G; title2 'Model (AS+GI+AI+AG+SG): backward selection'; run ; /AS+GI+SI+AG+SG/ proc catmod data=prob9_2; weight count; model ASGI=response/noiter noresponse nodesign; loglin A|S G|I S|I A|G S|G; title2 'Model (AS+GI+SI+AG+SG): backward selection'; run ; /AS+AI+SI+AG+SG/ proc catmod data=prob9_2; weight count; model ASG*I=response/noiter noresponse nodesign; loglin A|S A|I S|I A|G S|G; title2 'Model (AS+AI+SI+AG+SG): backward selection'; run ; ODS HTML Close; ODS Listing;
clear; options linesize= 80 ; options pagesize= 60 ; options missing='M'; title 'Homework 9.21'; data prob9_21; input age $ smoke $ death person u v; score=u*v; rate=death/person; logpeep=log(person); datalines; 35-44 Nonsmokers 2 18793 1 1 35-44 Smokers 32 52407 1 2 45-54 Nonsmokers 12 10673 2 1 45-54 Smokers 104 43248 2 2 55-64 Nonsmokers 28 5710 3 1 55-64 Smokers 206 28612 3 2 64-74 Nonsmokers 28 2585 4 1 64-74 Smokers 186 12663 4 2 75-84 Nonsmokers 31 1462 5 1 75-84 Smokers 102 5317 5 2 ; ods html body="STA5168-hw5-prob9.21.xls"; proc genmod data=prob9_21; class age smoke; model death = age smoke/dist=poi link=log type3 offset=logpeep; title2 'Each Age and Smoking'; run ; proc genmod data=prob9_21; class age smoke; model death = age smoke score/dist=poi link=log type3 offset=logpeep; title2 'Log Ratio of Coronary daeth rates changes linearly with age'; run ; ODS HTML Close; ODS Listing;