No.16691¡¡Fisher¤ÎľÀܳÎΨ¡©¡¡¡¡¡ÚÀÖ³Ù¡Û¡¡2012/03/28(Wed) 18:16

¤¤¤Ä¤â¤´¶µ¼¨¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£

²òÀϤμêË¡¤¬¤ï¤«¤ê¤Þ¤»¤ó¡£
¼£ÎÅÌôA¤òÅêÍ¿¤µ¤ì¤¿´µ¼Ô¤¬46Î㡤¥×¥é¥»¥Ü¤òÅêÍ¿¤µ¤ì¤¿´µ¼Ô¤¬43Î㤤¤Þ¤¹¡£
ÈéÉæ¾É¾õ¤¬¡¤¼£ÎÅA¤Ç¤Ï106·ï¡¤¥×¥é¥»¥Ü¤Ç¤Ï41·ïȯ¸½¤·¤Þ¤·¤¿¡£
ÈéÉæ¾É¾õ¤Î½Ð¸½¤¬¼£ÎÅA¤Ç¥×¥é¥»¥Ü¤ËÈ椷ͭ°Õ¤Ë¿¤¤¤Î¤«¤É¤¦¤«¸¡Äꤹ¤ë¾ì¹ç¡¤¤É¤ó¤Ê¼êË¡¤ò»È¤¨¤Ð¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£
ÏÀʸ¤Ç¤ÏFisher¤ÎľÀܳÎΨËô¤Ï¦ÖÆó¾è¸¡Äê¤òÍѤ¤¤¿¤È¤¢¤ê¤Þ¤¹¤¬¡¤¤É¤Î¤è¤¦¤Ë½èÍý¤·¤¿¤Î¤«¤ï¤«¤ê¤Þ¤»¤ó¡£

½éÊâŪ¤Ê¼ÁÌä¤Ç¶²½Ì¤Ç¤¹¤¬¡¤¤è¤í¤·¤¯¤´¶µ¼¨¤¯¤À¤µ¤¤¡£

No.16692¡¡Re: Fisher¤ÎľÀܳÎΨ¡©¡¡¡¡¡ÚÀÄÌÚÈË¿­¡Û¡¡2012/03/28(Wed) 20:21

> ¼£ÎÅÌôA¤òÅêÍ¿¤µ¤ì¤¿´µ¼Ô¤¬46Î㡤¥×¥é¥»¥Ü¤òÅêÍ¿¤µ¤ì¤¿´µ¼Ô¤¬43Î㤤¤Þ¤¹¡£
> ÈéÉæ¾É¾õ¤¬¡¤¼£ÎÅA¤Ç¤Ï106·ï¡¤¥×¥é¥»¥Ü¤Ç¤Ï41·ïȯ¸½¤·¤Þ¤·¤¿¡£

46ÎãÃæ106Î㡤43ÎãÃæ41Îã¤È¤Ï¡ª¡ª
Á°¼Ô¤Î¿ôÃͤ¬ÊѤǤ¹¤Í¡£¤È¤ª¤â¤Ã¤¿¤¬¡¤106Î㡤41Îã¤Ç¤Ï¤Ê¤¯¡¤106·ï¡¤41·ï¤Ê¤Î¤Ç¤¹¤Í¡£Æ±¤¸¿Í¤¬ÈéÉæ¾É¾õ¤òȯÀ¸¤·¤¿¤È¤­½ÅÊ£¤·¤Æ·×¾å¤·¤Æ¤¤¤ë¡©
¤³¤ó¤Ê¥Ç¡¼¥¿¤Ç¤Ï¡¤¥«¥¤Æó¾è¸¡Äê¡ÊÆÈΩÀ­¤Î¸¡Äê¡Ë¤â¥Õ¥£¥Ã¥·¥ã¡¼¤ÎÀµ³Î¸¡Äê¤âŬÍѤǤ­¤Þ¤»¤ó¤Í¡£

No.16694¡¡Re: Fisher¤ÎľÀܳÎΨ¡©¡¡¡¡¡ÚÀÖ³Ù¡Û¡¡2012/03/29(Thu) 09:32

ÀÄÌÚÀèÀ¸¡¤

¥³¥á¥ó¥È¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
¼£ÎÅÌôA¤Ç¤Ï46ÎãÃæÍÍ¡¹¤ÊÈéÉæ¾É¾õ¤¬106·ï¡¤¥×¥é¥»¥Ü¤Ç¤Ï43ÎãÃæ41·ï¤Ç¤¹¡£
¤¹¤Ê¤ï¤Á¡¤¼£ÎÅÌôA¤ÎÈéÉæ¾É¾õ¤Ï¡¤1Î㤢¤¿¤ê2.3·ï¡¤¥×¥é¥»¥Ü¤Ç¤Ï0.95·ïȯÀ¸¤·¤Æ¤¤¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
¤³¤Î¾ì¹ç¡¤Î¾·²¤Îº¹¤ò¸¡Äꤹ¤ë¤Ë¤Ï¤É¤ó¤Ê¼êË¡¤ò»È¤¨¤Ð¤è¤í¤·¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£

No.16695¡¡Re: Fisher¤ÎľÀܳÎΨ¡©¡¡¡¡¡ÚÀÄÌÚÈË¿­¡Û¡¡2012/03/29(Thu) 21:16

³ÆÈ︳¼Ô¤¬¡¤²¿·ï¤ÎÈéÉæ¾É¾õ¤ò»ý¤Ä¤«(0¡¤1¡¤2¡¤...)¤È¤¤¤¦¥Ç¡¼¥¿¤Ç¡¤ÈéÉæ¾É¾õ¤ÎÊ¿¶Ñ·ï¿ô¤Ëº¹¤¬¤¢¤ë¤«¤É¤¦¤«¡¤t¸¡Äê¤Ç¤â¡¤¥Þ¥ó¡¦¥Û¥¤¥Ã¥È¥Ë¡¼¤Î U ¸¡Äê¤Ç¤â¡©

> ¼£ÎÅÌôA¤ÎÈéÉæ¾É¾õ¤Ï¡¤1Î㤢¤¿¤ê2.3·ï¡¤¥×¥é¥»¥Ü¤Ç¤Ï0.95·ïȯÀ¸

¤È¤¤¤¦Í×ÌóÃͤϡ¤¤Þ¤µ¤ËÊ¿¶ÑÈéÉæ¾É¾õ·ï¿ô¡ÊÊ¿¶ÑÃ͡ˤòµá¤á¤¿¤Î¤À¤«¤é¡¤²¿¤ò¸¡Äꤹ¤ë¤«¤ÏÌÀ¤é¤«¡£Fisher¤ÎľÀܳÎΨ¤Ç¤Ê¤¤¤³¤È¤âÌÀ¤é¤«¤Ç¤·¤ç¤¦¡£

¤½¤ì¤è¤êÁ°¤Ë¡¤°Ê²¼¤Î¤è¤¦¤Ê½¸·×ɽ¤òºî¤Ã¤Æ¶ãÌ£¤·¤Æ¤¯¤À¤µ¤¤¡£¾É¾õ¤¬¤Ê¤¤¤â¤Î¤¬¡û¡û¿Í¡¤¾É¾õ1·ï¤Î¤â¤Î¤¬¡û¡û¿Í¤È¤¤¤¦¶ñ¹ç¤Ç¡¤¹ç·×Íó¤Ï¤½¤ì¤¾¤ì¤Î¼£ÎÅÌô¤¬ÅêÍ¿¤µ¤ì¤¿¿Í¿ô¤Ë¤Ê¤ê¤Þ¤¹¤Í¡£
              ÈéÉæ¾É¾õ·ï¿ô
¡¡¡¡¡¡¡¡¡¡0¡¡¡¡ 1¡¡¡¡ 2¡¡ ¡¡3¡¡...¡¡¹ç·×
¼£ÎÅÌôA¡¡¡¡¡û¡û¡¡¡û¡û¡¡¡û¡û¡¡¡û¡û¡¡¡¡ ¡û¡û
¼£ÎÅÌôB¡¡¡¡¡û¡û¡¡¡û¡û¡¡¡û¡û¡¡¡û¡û¡¡¡¡ ¡û¡û

No.16696¡¡Re: Fisher¤ÎľÀܳÎΨ¡©¡¡¡¡¡ÚÀÖ³Ù¡Û¡¡2012/03/30(Fri) 10:11

ÀÄÌÚÀèÀ¸¡¤

¶ñÂÎŪ¤Ë¤´¶µ¼¨¤¤¤¿¤À¤­¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
³Î¤«¤Ë¡¤¤½¤Î¤è¤¦¤Ë¥Ç¡¼¥¿¤ò°·¤¦¤È²òÀϤǤ­¤½¤¦¤Ç¤¹¤Í¡£
ÏÀʸ¤Ç¤Ï¡¤ÀèÀ¸¤¬¤´»ØŦ¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤Ë²òÀϤò¹Ô¤Ã¤Æ¤¤¤ë¤Î¤«¤âÃΤì¤Þ¤»¤ó¡£
¤¿¤À¡¤ÆɼԤϡ¤¸Ä¡¹¤Î¥Ç¡¼¥¿¤¬Ä󼨤µ¤ì¤Æ¤¤¤Ê¤¤¤Î¤Ç²òÀϤ·¤è¤¦¤¬¤¢¤ê¤Þ¤»¤ó¤¬¡£

¤³¤Î4¤Ä¤Î¥Ç¡¼¥¿¡Ê46Î㡤106·ï¡¤43Î㡤41·ï¡Ë¤À¤±¤Ç²òÀϤ¹¤ë¤È¤¹¤ì¤Ð¥Ý¥¢¥½¥ó²óµ¢Ê¬ÀϤDzÄǽ¤Ç¤·¤ç¤¦¤«¡£

No.16697¡¡Re: Fisher¤ÎľÀܳÎΨ¡©¡¡¡¡¡ÚÀÄÌÚÈË¿­¡Û¡¡2012/03/30(Fri) 10:27

ʬÉۤΰ㤤¤ò¸«¤ë¤Ê¤é¡¤No. 16695 ¤Ë¼¨¤·¤¿¤è¤¦¤Ê½¸·×ɽ¤ËÂФ·¤Æ¥«¥¤Æó¾è¸¡Äê¡Ê¥Õ¥£¥Ã¥·¥ã¡¼¤ÎÀµ³Î¸¡Äê¡Ë¤òŬÍѤ¹¤ë¤Î¤Ï²Äǽ¤Ç¤¹¤¬?
¤½¤ÎÏÀʸ¤Ë¤Ï¡ÖFisher¤ÎľÀܳÎΨËô¤Ï¦ÖÆó¾è¸¡Äê¤òÍѤ¤¤¿¡×¤È½ñ¤¤¤Æ¤¢¤ë¤À¤±¤Ç¤¹¤«?¡ÖʬÉۤκ¹¤ò¸«¤ë¤¿¤á¤Ë¤È¤«¡×½ñ¤¤¤Æ¤Ê¤¤¤Î¤Ç¤¹¤«?

> ¤³¤Î4¤Ä¤Î¥Ç¡¼¥¿¡Ê46Î㡤106·ï¡¤43Î㡤41·ï¡Ë¤À¤±¤Ç²òÀϤ¹¤ë¤È¤¹¤ì¤Ð¥Ý¥¢¥½¥ó²óµ¢Ê¬ÀϤDzÄǽ¤Ç¤·¤ç¤¦¤«

¤ä¤ì¤ë¤È¤ª»×¤¤¤Ê¤é¤Ð¤ä¤Ã¤Æ¤ß¤ì¤Ð¤è¤¤¤Ç¤·¤ç¤¦¡£

No.16698¡¡Re: Fisher¤ÎľÀܳÎΨ¡©¡¡¡¡¡ÚÀÖ³Ù¡Û¡¡2012/03/30(Fri) 12:55

ÀÄÌÚÀèÀ¸
ÏÀʸ¤Ë¤Ï¡¤¡ÖFor categorical outcomes, the data were compaired with the use of Fishr's exact test and the chi-square test, as appropriate.¡×°Ê³°¡¤ÉûºîÍѤβòÀϤËÂÅÅö¤Êµ­ºÜ¤Ï¸«Åö¤¿¤ê¤Þ¤»¤ó¡£
¼Â¤Ï¡¤ÏÀʸ¤ÎËÜʸÃæ¤ËÈéÉæ¾É¾õ¤Ë´Ø¤·¤Æ ¡ÊP<0.001¡Ë¤È¤¢¤ê¡¤¤½¤ì¤Ï¤½¤ì¤Ç¤è¤¤¤Î¤Ç¤¹¤¬¡¤ËÜ·ï¤Ç¤³¤À¤ï¤Ã¤Æ¤¤¤ë¤Î¤Ï¡¤ÉûºîÍѤΥꥹ¥È¤ò¸«¤ë¤È¾¤Î¾É¾õ¤Ë¤Ä¤¤¤Æ¤âº¹¤¬¤¢¤ë¤Î¤Ç¤Ï¤Ê¤¤¤« ¤È»×¤Ã¤Æ¤¤¤Þ¤¹¡£¤·¤«¤·¡¤ËÜʸ¤Ë¤Ï²òÀÏ·ë²Ì¤¬ÌÖÍåŪ¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤Ê¤¤¤Î¤Ç³Îǧ¤·¤¿¤¤¤È»×¤Ã¤¿¼¡Âè¤Ç¤¹¡£
¹Í¤¨¤Æ¤¤¤ë¥Ý¥¢¥½¥ó²óµ¢Ê¬ÀϤǤ¹¤¬¡¤
¼£ÎÅÌôA¤Î¥â¥Ç¥ë¡§
log ¦Ë(A) = log 46 + ¦È(A)
¥×¥é¥»¥Ü¤Î¥â¥Ç¥ë¡§
log ¦Ë(P) = log 43 + ¦È(P)
¤Ç¡¤
y(A)=106 ¡Á Poisson(¦Ë(A))
y(P)= 41 ¡Á Poisson(¦Ë(P)¡Ë
µ¢Ìµ²¾Àâ¤Ï¦È(A)=¦È(P)¡£
2¤Ä¤Î¥â¥Ç¥ë¤ò1¤Ä¤Î¥â¥Ç¥ë¤Ë¤·¡¤i=0, 1¤È¤·¤Æ¡¤i=0¤¬A¡¤i=1¤¬P¤È
¤¹¤ë¤È
log ¦Ë(i) = log N(i) + ¦È(A) +[¦È(P)-¦È(A)]*i
= log N(i) + ¦Ì + ¦È*i
¥Ý¥ï¥½¥ó²óµ¢¤Ç¡¤ÀÚÊҦ̤ȷ¹¤­¦È¤ò¿äÄꤷ¡¤¦È=0¤ò¸¡Äꤹ¤ì¤Ð
¤è¤¤¤Î¤«¤Ê¤È»×¤¤¤Þ¤¹¤¬¡¤¤³¤Î¹Í¤¨¤¬ÂÅÅö¤Ê¤Î¤«¤É¤¦¤«¤è¤¯¤ï¤«¤ê¤Þ¤»¤ó¡£
¤¿¤À¡¤Å¬Åö¤Ê²òÀÏ¥½¥Õ¥È¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¤·¡¤R¤â»È¤Ã¤¿¤³¤È¤¬¤Ê¤¤¤Î¤Ç¡¤¥×¥í¥°¥é¥ß¥ó¥°¤ÎÊýË¡¤â¤è¤¯¤ï¤«¤é¤º¡¤¤Þ¤º¤Ï²òÀϤ·¤Æ¤ß¤ë¤È¤¤¤¦¤³¤È¤¬¤Ç¤­¤Ê¤¤¾õ¶·¤Ç¤¹¡£
¤â¤¦¾¯¤·Çº¤ó¤Ç¤ß¤¿¤¤¤È»×¤¤¤Þ¤¹¤¬¡¤²¿¤«¥¢¥É¥Ð¥¤¥¹¤¤¤¿¤À¤±¤ë¤è¤¦¤Ç¤¢¤ì¤Ð¹¬¤¤¤Ç¤¹¡£

No.16747¡¡Re: Fisher¤ÎľÀܳÎΨ¡©¡¡¡¡¡ÚÀÖ³Ù¡Û¡¡2012/04/11(Wed) 13:49

¾åµ­¤Î¥Ý¥¢¥½¥ó²óµ¢Ê¬ÀϤ¬¤ä¤ê¤¿¤¯¤Æ¡¤R¤òÊÙ¶¯¤·¤Æ¤¤¤Þ¤¹¡£
ºÆÅÙ¡¤¼ÁÌä¤ò¤µ¤»¤Æ¤¯¤À¤µ¤¤¡£

¼£ÎÅÌôA¤Ç¤Ï46Îã¤ËÅêÍ¿¤µ¤ì¤ÆÉûºîÍѤ¬106·ï¡Ê°ì¿Í¤ÇÊ£¿ôȯ¸½¡Ëȯ¸½¡¤¥×¥é¥»¥ÜB¤Ç¤Ï43Îã¤ËÅêÍ¿¤µ¤ì¤ÆÉûºîÍѤ¬41·ïȯ¸½¤·¤Þ¤·¤¿¡£
A¤È¥×¥é¥»¥Ü¤ËÉûºîÍѤÎȯ¸½ÉÑÅ٤ΰ㤤¤Ï¤¢¤ë¤«¤È¤¤¤¦²òÀϤǤ¹¡£
¼£ÎÅÌôA¤Îȯ¸½Î¨¤Ï¡¤°ì¿Í¤¢¤¿¤êrA¡á106/46¡á2.3043¡¤¥×¥é¥»¥ÜP¤Ç¤ÏrP¡á41/43¡á0.9535¤È¤Ê¤ê¤Þ¤¹¡£
¾åµ­¼° log ¦Ë(i) = log N(i) + ¦Ì + ¦È*i ¡¤¤¿¤À¤·¡¤A¤Î¤È¤­i=0¡¤P¤Î¤È¤­i=1
¦Ì¤Î¿äÄêÃͤϡ¤
¦Ì=logrP=log(0.9535)=-0.0476
i¤Î¿äÄêÃͦȤϡ¤¦È=logrA-logrP=log(2.3043)-(-0.0476)=0.8824
¤È¡¤¿äÄêÃͤޤǤϼê·×»»¤Ç¤­¤Þ¤¹¡£

¤½¤³¤Ç¡¤R¡Ê½é¿´¼Ô¤Ç¤¹¡Ë¤ò¸«¤è¤¦¸«¿¿»÷¤Ç¥×¥í¥°¥é¥à¤ò½ñ¤­¡¤¼Â¹Ô¤·¤Þ¤·¤¿¡£
¤¹¤ë¤È¡¤°Ê²¼¤Î¤è¤¦¤ÊCall¤¬Ê֤äƤ­¤Þ¤·¤¿¤¬¡¤Estimate¤¬¼ê·×»»¤È¹çÃפ·¤Þ¤»¤ó¡£
¥×¥í¥°¥é¥à¤ò¤É¤Î¤è¤¦¤Ë½ñ¤±¤Ð¤è¤¤¤«¡¤¤´¶µ¼¨¤¤¤¿¤À¤±¤ì¤Ð¹¬¤¤¤Ç¤¹¡£

x<-c(0,1) # ¼£ÎÅÌô¡ÊA¡¤P¡Ë
y<-c(106,41) # ´Ñ¬ÅÙ¿ô¡ÊÉûºîÍÑ¡Ë
n<-c(log(46), log(43)) # ¾ÉÎã¿ô¡ÊA¡¤P¡Ë
A<-glm(y ~ x + n, family=poisson)
summary(g)

Call:
glm(formula = y ~ x + n, family = poisson)

Deviance Residuals:
[1] 0 0

Coefficients: (1 not defined because of singularities)
Estimate Std. Error z value Pr(>|z|)
(Intercept) 4.66344 0.09713 48.013 < 2e-16 ***
x -0.94987 0.18391 -5.165 2.41e-07 ***
n NA NA NA NA
---
Signif. codes: 0 ¡Æ***¡Ç 0.001 ¡Æ**¡Ç 0.01 ¡Æ*¡Ç 0.05 ¡Æ.¡Ç 0.1 ¡Æ ¡Ç 1

(Dispersion parameter for poisson family taken to be 1)

Null deviance: 2.9760e+01 on 1 degrees of freedom
Residual deviance: 1.2212e-14 on 0 degrees of freedom
AIC: 16.058

No.16749¡¡Re: Fisher¤ÎľÀܳÎΨ¡©¡¡¡¡¡ÚÀÄÌÚÈË¿­¡Û¡¡2012/04/11(Wed) 15:03

¥Ý¥¢¥½¥ó²óµ¢¤Î½¾Â°ÊÑ¿ô¤Ï¡¤¡ÖÀ°¿ô¡×¤Ç¤¹¡£³ä¹ç¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
¤Þ¤¿¡¤¥µ¥ó¥×¥ë¥µ¥¤¥º¤¬2¤Ê¤Î¤Ç¡¤Äê¿ô¤È·²¤Î2¤Ä¤ò´Þ¤á¤ë¤Ê¤é¤Ð¡¤Ê¬Êì¡Ê46¡¤43¡Ë¤Ï¥â¥Ç¥ë¤Ë´Þ¤á¤ë¤³¤È¤¬¤Ç¤­¤Þ¤»¤ó¡£
¤è¤Ã¤Æ¡¤
log 106 = ¦Á + ¦Â¡¦0 + ¦Ã¡¦46
log 41 = ¦Á + ¦Â¡¦1 + ¦Ã¡¦43
¤«¤é ¦Ã¡¦46¡¤¦Ã¡¦43 ¤ò½ü¤¤¤¿¤â¤Î¤Ç¤¹¤¬¡¤¡Êº£²ó¤â¡Ë´Êñ¤ÊÊýÄø¼°¤Ç¡¤
¦Á = log 106 = 4.663439
¦Â = log 41 - ¦Á = -0.949867
¤¬²ò¤Ç¤¹¡£glm ¤¬ÊÖ¤¹¥ª¥Ö¥¸¥§¥¯¥È¡Ê¾å¤Ç¤Ï g ¤Ç¤Ï¤Ê¤¯ A¡Ë¤Ë fitted.values ´Ø¿ô¤òŬÍѤ¹¤ë¤È
> fitted.values(A)
1 2
106 41
¤È¤Ê¤ê¡¤Àµ³Î¤Ê¡Ê´°Á´¤Ê¡Ëͽ¬¤¬¹Ô¤¨¤ë¤³¤È¤¬³Îǧ¤Ç¤­¤ë¤Ç¤·¤ç¤¦¡£
°Õ¿Þ¤·¤¿¤â¤Î¤¬¡¤¥Ý¥¢¥½¥ó²óµ¢¤Ê¤é¤Ð¡¤R ¤Î·ë²Ì¤ÏÀµ¤·¤¤¤È¤¤¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£

¥µ¥ó¥×¥ë¥µ¥¤¥º¤¬2¤Ê¤Î¤Ç¡¤2¸Ä¤Î¥Ñ¥é¥á¡¼¥¿¤ò»ý¤Ä¤¤¤«¤Ê¤ë¥â¥Ç¥ë¤â¡¤´°Á´¤Êͽ¬ÃͤòÍ¿¤¨¤Þ¤¹¡£

No.16750¡¡Re: Fisher¤ÎľÀܳÎΨ¡©¡¡¡¡¡ÚÀÖ³Ù¡Û¡¡2012/04/11(Wed) 15:36

ÀÄÌÚÀèÀ¸¡¤
Áᮤ´¶µ¼¨¤¤¤¿¤À¤­¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£

­¡Ê¬Êì¡Ê46,43¡Ë¤ò¥â¥Ç¥ë¤Ë´Þ¤á¤ë¤³¤È¤¬¤Ç¤­¤Ê¤¤¤È¡¤È¯¸½·ï¿ô¤ÏÅöÁ³¾ÉÎã¿ô¤Ë°Í¸¤·¤Þ¤¹¤Î¤Ç¡¤º¤¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
ÀÚÊҤȤ¤¤¦·Á¤Ç¡¤
offset()¤È¤¤¤¦´Ø¿ô¤¬¤¢¤ë¤³¤È¤òWEB¤ÇÃΤê¤Þ¤·¤¿¡£
¤½¤³¤Ç¡¤¤³¤Î¥â¥Ç¥ë¤ÎÀâÌÀÊÑ¿ô¤Ë¡Üoffset(n)¤ÈÄɵ­¤·¤Þ¤·¤¿¡£
¤¹¤ë¤È¡¤²¼µ­¤Î¤è¤¦¤Ê·ë²Ì¤¬ÆÀ¤é¤ì¤Þ¤·¤¿¡£¤³¤Î¹Í¤¨Êý¤ÏÂÅÅö¤Ç¤·¤ç¤¦¤«¡£

­¢¤Þ¤¿¡¤¥â¥Ç¥ë¼°¤Ç¡¤family=poisson(log)¤È¤·¤è¤¦¤¬¡¤family=poisson¤È¤·¤è¤¦¤¬·ë²Ì¤ÏÊѤï¤ê¤Þ¤»¤ó¤¬¡¤¤É¤Á¤é¤¬ÂÅÅö¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡£

¤´¶µ¼¨¤ª´ê¤¤¤·¤Þ¤¹¡£

> A1<-glm(y ~ x + offset(n), family=poisson(log))
> summary(A1)
Call:
glm(formula = y ~ x + offset(n), family = poisson(log))
Deviance Residuals:
[1] 0 0
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) 0.83480 0.09713 8.595 < 2e-16 ***
x -0.88243 0.18391 -4.798 1.6e-06 ***
---
Signif. codes: 0 ¡Æ***¡Ç 0.001 ¡Æ**¡Ç 0.01 ¡Æ*¡Ç 0.05 ¡Æ.¡Ç 0.1 ¡Æ ¡Ç 1

(Dispersion parameter for poisson family taken to be 1)
Null deviance: 2.5544e+01 on 1 degrees of freedom
Residual deviance: 5.9952e-15 on 0 degrees of freedom
AIC: 16.058
Number of Fisher Scoring iterations: 2

No.16751¡¡Re: Fisher¤ÎľÀܳÎΨ¡©¡¡¡¡¡ÚÀÄÌÚÈË¿­¡Û¡¡2012/04/11(Wed) 16:38

> ¤³¤Î¹Í¤¨Êý¤ÏÂÅÅö¤Ç¤·¤ç¤¦¤«¡£

offset ¤Î°ÕÌ£¤òÍý²ò¤·¤Æ¤¤¤ì¤Ð¡¤offset ¤ò²Ã¤¨¤ë¤Î¤â¤è¤¤¤Ç¤·¤ç¤¦¡£
°Ê²¼¤Î¤è¤¦¤Ëͽ¬¤µ¤ì¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹¡£
> exp(coefficients(A1)[1]+coefficients(A1)[2]*c(0, 1)+log(c(46, 43)))
[1] 106 41
¤Þ¤¿¤Ï
> exp(coefficients(A1)%*%matrix(c(1,0,1,1), 2)+log(c(46, 43)))
[,1] [,2]
[1,] 106 41
offset ´Ø¿ô¤ò»È¤¦¥â¥Ç¥ë¤â¡¤½êÁ§ 2 ¸Ä¤Î¥Ñ¥é¥á¡¼¥¿¤ò»È¤¦¤â¤Î¤Ê¤Î¤Ç¡¤´°Á´¤Ëͽ¬¤µ¤ì¤ë¤È¤¤¤¦ÅÀ¤Ç¤Ï¡¤Æ±¤¸¤Ç¤¹¡£²ò¼á¤·¤ä¤¹¤¤Êý¤Ç¤É¤¦¤¾¡£

> family=poisson(log)¤È¤·¤è¤¦¤¬¡¤family=poisson¤È¤·¤è¤¦¤¬·ë²Ì¤ÏÊѤï¤ê¤Þ¤»¤ó¤¬¡¤¤É¤Á¤é¤¬ÂÅÅö¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡£

º£¤Î¾ì¹ç¡¤¤É¤Á¤é¤âƱ¤¸¤Ç¤¹¡£glm ¤Î family ¥Ñ¥é¥á¡¼¥¿¡¤¤Þ¤¿¡¤family ´Ø¿ô¤òÄ´¤Ù¤ë¤Èʬ¤«¤ê¤Þ¤¹¡£

No.16755¡¡Re: Fisher¤ÎľÀܳÎΨ¡©¡¡¡¡¡ÚÀÖ³Ù¡Û¡¡2012/04/11(Wed) 17:22

ÀÄÌÚÀèÀ¸
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£
¤ä¤Ã¤È¤³¤ÎÌäÂ꤬²ò·è¤·¤Þ¤·¤¿¡£
º£¸å¤È¤â¤è¤í¤·¤¯¤´»ØƳ¤ª´ê¤¤¤·¤Þ¤¹¡£

¡ü ¡ÖÅý·×³Ø´ØÏ¢¤Ê¤ó¤Ç¤â¤¢¤ê¡×¤Î²áµî¥í¥°--- 045 ¤ÎÌܼ¡¤Ø¥¸¥ã¥ó¥×
¡ü ¡ÖÅý·×³Ø´ØÏ¢¤Ê¤ó¤Ç¤â¤¢¤ê¡×¤ÎÌܼ¡¤Ø¥¸¥ã¥ó¥×
¡ü ľÁ°¤Î¥Ú¡¼¥¸¤ØÌá¤ë