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)[1] 0.7393686 looks like excel gave you the other tail .... bob kinley richard mendes <mendes.richard@gmail.com> Sent by: r-help-bounces@stat.math.ethz.ch 18/10/2005 16:13 To R-help@stat.math.ethz.ch cc Subject [R] p-value calculation 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 ______________________________________________ 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 [[alternative HTML version deleted]]
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
> pchisq(1.2654,df=1,low=F)[1] 0.2606314 ======= 2005-10-18 23:13:20 伳侜佋佢伬伌佇伵佒佇佇伌伒伬仯伜======>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 > >______________________________________________ >R-help at 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= = = = = = = = = = = = = = = = = = = 2005-10-18 ------ Deparment of Sociology Fudan University My new mail addres is ronggui.huang at gmail.com Blog:http://sociology.yculblog.com
richard mendes <mendes.richard at gmail.com> writes:> 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> 1-pchisq(1.2654,1)[1] 0.2606314 or> pchisq(1.2654,1,lower.tail=FALSE)[1] 0.2606314> friendly regards > > richard > > ______________________________________________ > R-help at 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 >-- O__ ---- Peter Dalgaard ??ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
Look at ?pchisq Daniel Nordlund Bothell, WA> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch [mailto:r-help- > bounces at stat.math.ethz.ch] On Behalf Of richard mendes > Sent: Tuesday, October 18, 2005 8:13 AM > To: R-help at stat.math.ethz.ch > Subject: [R] p-value calculation > > 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 > > ______________________________________________ > R-help at 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
> 1-pchisq(1.2654,1)[1] 0.2606314 -Don At 5:13 PM +0200 10/18/05, 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 > >______________________________________________ >R-help at 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-- -------------------------------------- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory Livermore, CA, USA