Dear all,

I'd like to test the two-side significance of an observed value being 
lower or higher in comparison to a null distribution, but I don't know 
how to build this in R code. Can anybody help me with some code or any R 
function?

Let's say  'null.dist' the null distribution, 'obs' the observed value 
and 'alpha' the probability of Type I error.
set.seed(10)
rnorm(999)->null.dist
obs<-1.5
alpha<-0.05

Thanks in advance
Best wishes
Tano
-- 
*Cayetano Gutiérrez Cánovas*
Aquatic Ecology Group <http://www.um.es/ecoaqua>
Universidad de Murcia (Spain)

website <http://www.um.es/ecoaqua/personal/Gutierrez-Canovas_en.html>
Scholar Google Citations 
<http://scholar.google.com/citations?user=Yowrt8gAAAAJ>
Lessons from nature <http://lessonsfromnature.org/es/>
skype: tano.gc
twitter: @LdN_Esp <https://twitter.com/LdN_Esp>

	[[alternative HTML version deleted]]

