Skip to content
Prev 22388 / 398502 Next

How to get p-values

Dear Mathias and Peter,

I'm pretty sure that Mathias is looking for the F and t quantile functions, 
which, Mathias, by default return F and t values corresponding to 
cumulative (i.e., left-tail) probabilities. So, for your example,

 > qf(.95, 1, 2)
[1] 18.51282

gives you the F with 1 and 2 df that has an area of .05 to the right. See 
help(qf) and help(qt) for details.

I hope that this helps,
  John
At 12:36 PM 8/5/2002 +0200, Peter Dalgaard BSA wrote:
-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox
-----------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._