Re: [R] about "pnorm"

From: Daniel Nordlund <res90sx5_at_verizon.net>
Date: Tue 30 Aug 2005 - 14:21:13 EST


> -----Original Message-----
> From: r-help-bounces@stat.math.ethz.ch [mailto:r-help-bounces@stat.math.ethz.ch]
> On Behalf Of ??
> Sent: Monday, August 29, 2005 8:33 PM
> To: r-help@stat.math.ethz.ch
> Subject: [R] about "pnorm"
>
> As to the function"pnorm",the default degree of freedom(df) is infinite.
>
> I wanna know how to set the df as I want.
>
> Help on pnorm doesn't have df setting.The only choice are:"mean, sd, lower.tail,
> log.p",but no df.
>
> For instance:
> sample size=6
> df=6-1=5
> t value=9.143
>
> I wanna to the corresponding p value by using function "pnorm".
> How can I do it?
>
>
>
> Thanks a lot for your help!
>
> My best
>
>
>
>
>
>
>
> ------------------------------
> *******************************************
> Xin Meng
> Capitalbio Corporation
> National Engineering Research Center
> for Beijing Biochip Technology
> Microarray and Bioinformatics Dept.
> Research Engineer
> Tel: +86-10-80715888/80726868-6364/6333
> Fax: +86-10-80726790
> Email#:xmeng@capitalbio.com
> Address:18 Life Science Parkway,
> Changping District, Beijing 102206, China

If you are using t-values with small degrees of freedom, shouldn't you be using pt() rather than pnorm().

Try pt(9.143, 5).

Dan Nordlund
Bothell, WA



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 Tue Aug 30 14:29:00 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 16:06:27 EST