Re: [R] p-value from GEE why factor 2*pnorm?

2007-06-12 Thread Carmen Meier
Benilton Carvalho schrieb: Well, AFAIK, the definition of a p-value is the probability of observing something at least as extreme as the observed data. If you observed z, and Z follows a std-normal p-value = P( Z -abs(z) ) + P( Z abs(z) ) = 2*P ( Z abs(z) ) = 2*pnorm(z,

Re: [R] p-value from GEE why factor 2*pnorm?

2007-06-11 Thread Carmen Meier
I got an answer for the other question (thank you) But there is another question (I am afraid this is a basic question ...) In this tread there is a hint hwo to calculate the p-vlue of an GEE: _http://finzi.psych.upenn.edu/R/Rhelp02a/archive/74150.html_ Then, get the P values using a normal

Re: [R] p-value from GEE why factor 2*pnorm?

2007-06-11 Thread Benilton Carvalho
the recommendation was to use lower.tail=FALSE. b On Jun 11, 2007, at 11:21 AM, Carmen Meier wrote: I got an answer for the other question (thank you) But there is another question (I am afraid this is a basic question ...) In this tread there is a hint hwo to calculate the p-vlue of

Re: [R] p-value from GEE why factor 2*pnorm?

2007-06-11 Thread Carmen Meier
Benilton Carvalho schrieb: the recommendation was to use lower.tail=FALSE. b O but then the results are significant and this does not match the observation. The results are matching the observations if the formula is

Re: [R] p-value from GEE why factor 2*pnorm?

2007-06-11 Thread Robert A LaBudde
At 11:21 AM 6/11/2007, Carmen wrote: snip In this tread there is a hint hwo to calculate the p-vlue of an GEE: _http://finzi.psych.upenn.edu/R/Rhelp02a/archive/74150.html Then, get the P values using a normal approximation for the distribution of z: / 2 *

Re: [R] p-value from GEE why factor 2*pnorm?

2007-06-11 Thread Benilton Carvalho
Well, AFAIK, the definition of a p-value is the probability of observing something at least as extreme as the observed data. If you observed z, and Z follows a std-normal p-value = P( Z -abs(z) ) + P( Z abs(z) ) = 2*P ( Z abs(z) ) = 2*pnorm(z, lower.tail=FALSE) try z=0 (you should