Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

uBar

Mean Rate: Count Data (u-chart)


Description

Calculates overall mean rate for count data acquired over a variable area of opportunity.

Usage

uBar(y, n, na.rm = FALSE, ...)

Arguments

y

Vector of counts per unit opportunity (rate). Observations may have a different area of opportunity, n.

n

A vector representing the area of opportunity.

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

...

further arguments passed to or from other methods.

Value

A vector of mean rate, length equal to length of parameter y.

Examples

set.seed(5555)
counts <- rpois(100, 25)
n <- rpois(100, 15)
uBar(y = counts / n, n = n)

ggQC

Quality Control Charts for 'ggplot'

v0.0.31
GPL-3 | file LICENSE
Authors
Kenith Grey
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.