Re: [R] simple maths question

From: Ben Bolker <bbolker_at_gmail.com>
Date: Tue, 12 Apr 2011 01:06:29 +0000

Georg Ehret <georgehret <at> gmail.com> writes:

>
> Hi Mrs & Ms "R",
> A simple maths question that I am trying to resolve with R: I need to
> calculate the SE from a pvalue and it's beta... How to do this...?
> Thank you very much and best regards!
> Georg Ehret, Geneva, Switzerland.
  

  Without more information, I don't think you can. **If** you are assuming a Z test (i.e. the thing you are testing against a null hypotheses H_0=0 is supposed to be normally distributed) then you know that

   p-value = 2*pnorm(abs(beta/SE),lower.tail=FALSE)

[based on a two-tailed test] and you can use qnorm() to invert this, but you can't separate beta and SE.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 12 Apr 2011 - 01:11:11 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 12 Apr 2011 - 02:00:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive