powered by
Calculates the mean value for binomial count data acquired over the same-sized area of opportunity.
npBar(y, n, na.rm = FALSE, ...)
Vector of binomial count data (not proportions). Each observation having the same-area of opportunity.
A number representing the area of opportunity.
a logical value indicating whether NA values should be stripped before the computation proceeds.
further arguments passed to or from other methods.
A number; mean value
# NOT RUN { set.seed(5555) p <- rbinom(n = 100, size = 30, prob = .2) npBar(y = p, n = 30) # }
Run the code above in your browser using DataLab