Re: [R] p-value calculation

From: Marc Schwartz (via MN) <mschwartz_at_mn.rr.com>
Date: Wed 19 Oct 2005 - 01:23:08 EST

On Tue, 2005-10-18 at 17:13 +0200, richard mendes wrote:
> hello everybody
>
> i'm very new at using R so probably this is a very stupid question.
> I have a problem calculating a p-value. When i do this with excel i
> can use the method CHIDIST for 1.2654 with 1 freedom degree i get the
> answer 0.261
>
> i just want to do the same thing in R but i can't find a method.
> can somebody help me
>
> friendly regards
>
> richard

> pchisq(1.2654, 1, lower.tail = FALSE)
[1] 0.2606314

See ?pchisq for more information.

You might also want to read Chapter 8 "Probability Distributions" in "An Introduction To R", available with your R installation or from the Documentation links on the main R web site.

HTH, Marc Schwartz



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Oct 19 01:39:29 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 19:02:01 EST