Hi,
Many thanks for your kind help.
best regards,
Yu-Kang
From: Emmanuel Paradis <[EMAIL PROTECTED]> To: "Tu Yu-Kang" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [R] extracting p value from GEE Date: Fri, 05 Dec 2003 15:48:41 +0100
At 11:53 04/12/2003 +0000, vous avez 嶰rit:Dear R users,
If anyone can tell me how to extract the p values from the output of gee?
They are easily computed from the output of summary(gee(...)) which prints either a "z" or a "t" depending in the "family" option. z follows, under the null hypothesis, a normal distribution N(0, 1), you have the corresponding P-value with (for a two-tailed test):
2 * (1 - pnorm(abs(z)))
t follows a 'Student' distribution with df degrees of freedom given by N- k - 1, where N is the number of observations, and k is the number of estimated paramaters. I think, but am not definitely sure, that N is counted among all clusters, and k is the number of parameters in the GLM eventually included the estimated scale (correlation parameters are not counted). As above, you have the P-value with:
2 * (1 - pnorm(abs(t), df))
HTH
Emmanuel Paradis
Many thanks in advance.
Yu-Kang
_________________________________________________________________
免費試聽 MSN 英語學習:和真人老師線上學英文
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
_________________________________________________________________ 來逛逛 MSN eShop:便利的購物環境、優質的網路商家,隨時有驚喜的優惠促銷等著您 ! http://msn.com.tw/eshop
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
