View source: R/select_factor_treshold.R
select_factor_threshold | R Documentation |
The negative binomial average of the Count
variable is calculated for
each level of variable
.
Only the levels which are equal or larger than threshold
times the
maximal average (in the original scale) are retained.
select_factor_threshold(observation, variable, threshold)
observation |
the |
variable |
the name of the |
threshold |
the minimal threshold |
observation <- data.frame(
Count = c(100, 101, 50, 51, 1, 0, 0, 0),
LocationID = factor(rep(1:4, each = 2))
)
select_factor_threshold(observation, "LocationID", threshold = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.