[R] about "pnorm"
Daniel Nordlund
res90sx5 at verizon.net
Tue Aug 30 06:21:13 CEST 2005
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch]
> On Behalf Of ??
> Sent: Monday, August 29, 2005 8:33 PM
> To: r-help at 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 at 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
More information about the R-help
mailing list