[R] pvalue calculate

arun smartpink111 at yahoo.com
Sun Jul 22 22:31:13 CEST 2012


HI,
Probably ?pnorm
x1<-mean(x)
x1
[1] 25.5
> pnorm(25.5,mean=300)
[1] 0


A.K.







----- Original Message -----
From: Mary Kindall <mary.kindall at gmail.com>
To: r-help at r-project.org
Cc: 
Sent: Sunday, July 22, 2012 3:37 PM
Subject: [R] pvalue calculate

I have a value
a=300

observation (x) = sample(1:50)

How to find a p-value from this. I need to show that "a" is different fom
mean(x).
Thanks

-- 
-------------
Mary Kindall
Yorktown Heights, NY
USA

    [[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list