Calculates overall mean rate for count data acquired over a variable area of opportunity.
uBar(y, n, na.rm = FALSE, ...)
Vector of counts per unit opportunity (rate). Observations may have a different area of opportunity, n.
A vector 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 vector of mean rate, length equal to length of parameter y.
# NOT RUN {
set.seed(5555)
counts <- rpois(100, 25)
n <- rpois(100, 15)
uBar(y = counts / n, n = n)
# }
Run the code above in your browser using DataLab