p-Function for Empirical Distributions
On Fri, Sep 3, 2010 at 11:32 PM, Jane Shevtsov <jane.eco at gmail.com> wrote:
Does R have a p-function for empirical distributions? In other words, how can I find out what fraction of the values in my data set are smaller than a given value?
Maybe
sum(x <= crit) / length(x)
Cheers,
Peter
P?ter S?lymos
Alberta Biodiversity Monitoring Institute
Department of Biological Sciences
CW 405, Biological Sciences Bldg
University of Alberta
Edmonton, Alberta, T6G 2E9, Canada
email <- paste("solymos", "ualberta.ca", sep = "@")
-- ------------- Jane Shevtsov Ecology Ph.D. candidate, University of Georgia co-founder, <www.worldbeyondborders.org> Check out my blog, <http://perceivingwholes.blogspot.com>Perceiving Wholes "The whole person must have both the humility to nurture the Earth and the pride to go to Mars." --Wyn Wachhorst, The Dream of Spaceflight
_______________________________________________ R-sig-ecology mailing list R-sig-ecology at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology