楼主: Limdep
3494 7

Alan Agresti: An Introduction to Categorical Data Analysis [推广有奖]

  • 0关注
  • 2粉丝

本科生

98%

还不是VIP/贵宾

-

TA的文库  其他...

Java资源全汇

Data Science NewOccidental

Database NewOccidental

威望
0
论坛币
4698 个
通用积分
4.1800
学术水平
8 点
热心指数
3 点
信用等级
3 点
经验
1089 点
帖子
133
精华
0
在线时间
20 小时
注册时间
2006-5-15
最后登录
2017-10-27

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
  • An Introduction to Categorical Data Analysis, Second Edition原版
  • An Introduction to Categorical Data Analysis (2007)下载
  • AN INTRODUCTION TO CATEGORICAL DATA ANALYSIS的习题集答案
  • An Introduction to Categorical Data Analysis
  • Solution of An Introduction to Categorical Data Analysis
  • [下载]An introduction to categorical data analysis
  • [论坛首发】JMP Software: Introduction to Categorical Data Analysis Course Notes
  • An Introduction to Categorical Data Analysis (2007)
  • [下载]Introduction to Categorical Data Analysis
  • An_introduction_to_Categorical_Data_Analysis
  • notes: an introduction to categorical data analysis
  • an introduction to categorical data analysis(by Alan Agresti)的stata例题数据
  • an introduction to categorical data analysis, 2nd edition
  • An Introduction to Categorical Data Analysis

  • [原创]经典好书:An introduction to categorical data analysis
  • [新书]Introduction to Categorical Data Analysis 2nd ed(Alan Agresti)
  • [下载]An Introduction to Categorical Data Analysis Using R
  • An Introduction to Categorical Data Analysis
  • An Introduction to Categorical Data Analysis>(2nd edition)
  • An Introduction to Categorical Data Analysis 2007
  • An introduction to categorical data analysis
  • An introduction to categorical data analysis
  • Introduction to Categorical Data Analysis



二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:introduction Categorical troduction Analysis Analysi

沙发
Limdep 发表于 2016-2-2 08:00:47 |只看作者 |坛友微信交流群
  1. A.1 SAS file for chi-squared tests with aspirin data in Table 2.3

  2. data aspirin;
  3. input group mi count @@;
  4. datalines;

  5. 1 1 189     1 2 10845  
  6. 2 1 104     2 2 10933  
  7. ;
  8. proc freq order=data; weight count;
  9. tables group*mi / chisq expected measures;
  10. proc genmod;
  11. model count = group mi / dist=poi link=log obstats;
  12. run;
复制代码

使用道具

藤椅
Limdep 发表于 2016-2-2 08:01:51 |只看作者 |坛友微信交流群
  1. A.2 SAS file for analyses of infant malformation data in Table 2.7

  2. data infants;
  3. input malform alcohol count @@;
  4. datalines;

  5. 1 0 17066    1 0.5 14464   1 1.5 788    1 4.0 126    1 7.0 37
  6. 2 0    48    2 0.5    38   2 1.5   5    2 4.0   1    2 7.0  1
  7. ;
  8. proc freq; weight count;
  9. tables malform*alcohol / chisq cmh1;
  10. proc freq; weight count;
  11. tables malform*alcohol / cmh1 scores=ridit;
  12. run;
复制代码

使用道具

板凳
Limdep 发表于 2016-2-2 08:02:30 |只看作者 |坛友微信交流群
  1. A.3 SAS file for Fisher's exact test with tea-tasting data in Table 2.8

  2. data tea;
  3. input poured guess count @@;
  4. datalines;

  5. 1  1  3      1  2  1  
  6. 2  1  1      2  2  3
  7. ;
  8. proc freq; weight count;
  9. tables poured*guess / exact;
  10. run;
复制代码

使用道具

报纸
Limdep 发表于 2016-2-2 08:03:23 |只看作者 |坛友微信交流群
  1. A.4 SAS file for CMH analysis of Chinese smoking data in Table 3.3 of first edition and Table 5.12 of 2nd edition

  2. data cmh;
  3. input center smoke cancer count @@;
  4. datalines;

  5. 1 1 1 126   1 1 2 100   1 2 1  35   1 2 2  61
  6. 2 1 1 908   2 1 2 688   2 2 1 497   2 2 2 807
  7. 3 1 1 913   3 1 2 747   3 2 1 336   3 2 2 598
  8. 4 1 1 235   4 1 2 172   4 2 1  58   4 2 2 121
  9. 5 1 1 402   5 1 2 308   5 2 1 121   5 2 2 215
  10. 6 1 1 182   6 1 2 156   6 2 1  72   6 2 2  98
  11. 7 1 1  60   7 1 2  99   7 2 1  11   7 2 2  43
  12. 8 1 1 104   8 1 2  89   8 2 1  21   8 2 2  36
  13. ;
  14. proc freq; weight count;
  15. tables center*smoke*cancer / cmh;
  16. run;
复制代码

使用道具

地板
Limdep 发表于 2016-2-2 08:19:26 |只看作者 |坛友微信交流群
  1. A.5 SAS file for binary regression models with snoring data in Table 3.1 of 2nd edition (Table 4.1 of first edition)

  2. data glm;
  3. input snoring disease total;
  4. datalines;
  5. 0 24 1379
  6. 2 35 638
  7. 4 21 213
  8. 5 30 254
  9. ;
  10. proc genmod; model disease/total = snoring / dist=bin link=identity ;
  11. proc genmod; model disease/total = snoring / dist=bin link=logit ;
  12. proc genmod; model disease/total = snoring / dist=bin link=probit;
  13. run;
复制代码

使用道具

7
Limdep 发表于 2016-2-2 08:22:38 |只看作者 |坛友微信交流群
  1. A.6 SAS file for analyses of horseshoe crab data in Table 3.2 of 2nd edition (Table 4.2 of first edition)

  2. data crab;
  3. input color spine width satell weight;
  4. if satell>0 then y=1; if satell=0 then y=0; n=1;
  5. weight = weight/1000; color = color - 1;
  6. if color=4 then dark=0; if color < 4 then dark=1;
  7. datalines;

  8. 3  3  28.3  8  3050
  9. 4  3  22.5  0  1550
  10. 2  1  26.0  9  2300
  11. 4  3  24.8  0  2100
  12. 4  3  26.0  4  2600
  13. 3  3  23.8  0  2100
  14. 2  1  26.5  0  2350
  15. 4  2  24.7  0  1900
  16. 3  1  23.7  0  1950
  17. 4  3  25.6  0  2150
  18. 4  3  24.3  0  2150
  19. 3  3  25.8  0  2650
  20. 3  3  28.2  11 3050
  21. 5  2  21.0  0  1850
  22. 3  1  26.0  14 2300
  23. 2  1  27.1  8  2950
  24. 3  3  25.2  1  2000
  25. 3  3  29.0  1  3000
  26. 5  3  24.7  0  2200
  27. 3  3  27.4  5  2700
  28. 3  2  23.2  4  1950
  29. 2  2  25.0  3  2300
  30. 3  1  22.5  1  1600
  31. 4  3  26.7  2  2600
  32. 5  3  25.8  3  2000
  33. 5  3  26.2  0  1300
  34. 3  3  28.7  3  3150
  35. 3  1  26.8  5  2700
  36. 5  3  27.5  0  2600
  37. 3  3  24.9  0  2100
  38. 2  1  29.3  4  3200
  39. 2  3  25.8  0  2600
  40. 3  2  25.7  0  2000
  41. 3  1  25.7  8  2000
  42. 3  1  26.7  5  2700
  43. 5  3  23.7  0  1850
  44. 3  3  26.8  0  2650
  45. 3  3  27.5  6  3150
  46. 5  3  23.4  0  1900
  47. 3  3  27.9  6  2800
  48. 4  3  27.5  3  3100
  49. 2  1  26.1  5  2800
  50. 2  1  27.7  6  2500
  51. 3  1  30.0  5  3300
  52. 4  1  28.5  9  3250
  53. 4  3  28.9  4  2800
  54. 3  3  28.2  6  2600
  55. 3  3  25.0  4  2100
  56. 3  3  28.5  3  3000
  57. 3  1  30.3  3  3600
  58. 5  3  24.7  5  2100
  59. 3  3  27.7  5  2900
  60. 2  1  27.4  6  2700
  61. 3  3  22.9  4  1600
  62. 3  1  25.7  5  2000
  63. 3  3  28.3  15 3000
  64. 3  3  27.2  3  2700
  65. 4  3  26.2  3  2300
  66. 3  1  27.8  0  2750
  67. 5  3  25.5  0  2250
  68. 4  3  27.1  0  2550
  69. 4  3  24.5  5  2050
  70. 4  1  27.0  3  2450
  71. 3  3  26.0  5  2150
  72. 3  3  28.0  1  2800
  73. 3  3  30.0  8  3050
  74. 3  3  29.0  10 3200
  75. 3  3  26.2  0  2400
  76. 3  1  26.5  0  1300
  77. 3  3  26.2  3  2400
  78. 4  3  25.6  7  2800
  79. 4  3  23.0  1  1650
  80. 4  3  23.0  0  1800
  81. 3  3  25.4  6  2250
  82. 4  3  24.2  0  1900
  83. 3  2  22.9  0  1600
  84. 4  2  26.0  3  2200
  85. 3  3  25.4  4  2250
  86. 4  3  25.7  0  1200
  87. 3  3  25.1  5  2100
  88. 4  2  24.5  0  2250
  89. 5  3  27.5  0  2900
  90. 4  3  23.1  0  1650
  91. 4  1  25.9  4  2550
  92. 3  3  25.8  0  2300
  93. 5  3  27.0  3  2250
  94. 3  3  28.5  0  3050
  95. 5  1  25.5  0  2750
  96. 5  3  23.5  0  1900
  97. 3  2  24.0  0  1700
  98. 3  1  29.7  5  3850
  99. 3  1  26.8  0  2550
  100. 5  3  26.7  0  2450
  101. 3  1  28.7  0  3200
  102. 4  3  23.1  0  1550
  103. 3  1  29.0  1  2800
  104. 4  3  25.5  0  2250
  105. 4  3  26.5  1  1967
  106. 4  3  24.5  1  2200
  107. 4  3  28.5  1  3000
  108. 3  3  28.2  1  2867
  109. 3  3  24.5  1  1600
  110. 3  3  27.5  1  2550
  111. 3  2  24.7  4  2550
  112. 3  1  25.2  1  2000
  113. 4  3  27.3  1  2900
  114. 3  3  26.3  1  2400
  115. 3  3  29.0  1  3100
  116. 3  3  25.3  2  1900
  117. 3  3  26.5  4  2300
  118. 3  3  27.8  3  3250
  119. 3  3  27.0  6  2500
  120. 4  3  25.7  0  2100
  121. 3  3  25.0  2  2100
  122. 3  3  31.9  2  3325
  123. 5  3  23.7  0  1800
  124. 5  3  29.3  12 3225
  125. 4  3  22.0  0  1400
  126. 3  3  25.0  5  2400
  127. 4  3  27.0  6  2500
  128. 4  3  23.8  6  1800
  129. 2  1  30.2  2  3275
  130. 4  3  26.2  0  2225
  131. 3  3  24.2  2  1650
  132. 3  3  27.4  3  2900
  133. 3  2  25.4  0  2300
  134. 4  3  28.4  3  3200
  135. 5  3  22.5  4  1475
  136. 3  3  26.2  2  2025
  137. 3  1  24.9  6  2300
  138. 2  2  24.5  6  1950
  139. 3  3  25.1  0  1800
  140. 3  1  28.0  4  2900
  141. 5  3  25.8  10 2250
  142. 3  3  27.9  7  3050
  143. 3  3  24.9  0  2200
  144. 3  1  28.4  5  3100
  145. 4  3  27.2  5  2400
  146. 3  2  25.0  6  2250
  147. 3  3  27.5  6  2625
  148. 3  1  33.5  7  5200
  149. 3  3  30.5  3  3325
  150. 4  3  29.0  3  2925
  151. 3  1  24.3  0  2000
  152. 3  3  25.8  0  2400
  153. 5  3  25.0  8  2100
  154. 3  1  31.7  4  3725
  155. 3  3  29.5  4  3025
  156. 4  3  24.0  10 1900
  157. 3  3  30.0  9  3000
  158. 3  3  27.6  4  2850
  159. 3  3  26.2  0  2300
  160. 3  1  23.1  0  2000
  161. 3  1  22.9  0  1600
  162. 5  3  24.5  0  1900
  163. 3  3  24.7  4  1950
  164. 3  3  28.3  0  3200
  165. 3  3  23.9  2  1850
  166. 4  3  23.8  0  1800
  167. 4  2  29.8  4  3500
  168. 3  3  26.5  4  2350
  169. 3  3  26.0  3  2275
  170. 3  3  28.2  8  3050
  171. 5  3  25.7  0  2150
  172. 3  3  26.5  7  2750
  173. 3  3  25.8  0  2200
  174. 4  3  24.1  0  1800
  175. 4  3  26.2  2  2175
  176. 4  3  26.1  3  2750
  177. 4  3  29.0  4  3275
  178. 2  1  28.0  0  2625
  179. 5  3  27.0  0  2625
  180. 3  2  24.5  0  2000
  181. ;
  182. proc genmod; model satell = width / dist=poi link=log;
  183. proc genmod; model satell = width / dist=poi link=identity;
  184. proc genmod;
  185. model satell = width / dist=nor link=identity;
  186. proc genmod;
  187. model y/n = width / dist=bin link=logit obstats ;
  188. proc genmod; class color;
  189. model y/n = color width / dist=bin link=logit;
  190. proc genmod;
  191. model y/n = color width / dist=bin link=logit;
  192. proc genmod; class color spine;
  193. model y/n = color spine width weight / dist=bin link=logit type3;
  194. proc genmod;
  195. model y/n = / dist=bin link=logit ;
  196. proc logistic;
  197. model y = width;
  198. proc logistic;
  199. model y = color weight width / selection=backward;
  200. proc genmod;
  201. model y/n = weight dark / dist=bin link=logit;
  202. run;
  203. http://www.stat.ufl.edu/~aa/intro-cda/appendix.html
复制代码

使用道具

8
feoy 发表于 2017-1-9 10:36:15 |只看作者 |坛友微信交流群
怎么下呀?谢谢!

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-8 00:41