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
> -----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, ChinaIf 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
Try ?pt Ted. On 30/08/05 13:33, wrote,:> 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-- Dr E.A. Catchpole Visiting Fellow Univ of New South Wales at ADFA, Canberra, Australia and University of Kent, Canterbury, England - www.ma.adfa.edu.au/~eac - fax: +61 2 6268 8786 - ph: +61 2 6268 8895