| proportion_of_values_in_vector | R Documentation |
Proportion of given values in a vector
proportion_of_values_in_vector( values = NULL, vector = NULL, na.exclude = TRUE, output_type = "proportion", silent = FALSE, conf.level = 0.95, correct_yates = TRUE )
values |
a set of values that will count as successes (hits) |
vector |
a numeric or character vector containing successes (hits) and failures (misses) |
na.exclude |
if |
output_type |
By default, |
silent |
If |
conf.level |
confidence level of the returned confidence interval.
Input to this argument will be passed onto the conf.level argument
in the |
correct_yates |
a logical indicating whether Yates' continuity
correction should be applied where possible (default = TRUE).
Input to this argument will be passed onto the |
proportion_of_values_in_vector( values = 2:3, vector = c(rep(1:3, each = 10), rep(NA, 10)) ) proportion_of_values_in_vector( values = 2:3, vector = c(rep(1:3, each = 10), rep(NA, 10)), output_type = "se" ) proportion_of_values_in_vector( values = 2:3, vector = c(rep(1:3, each = 10), rep(NA, 10)), conf.level = 0.99 ) proportion_of_values_in_vector( values = c(2:3, NA), vector = c(rep(1:3, each = 10), rep(NA, 10)), na.exclude = FALSE )