var_of_proportion {kim} | R Documentation |
Variance of a proportion
Description
Calculate the variance of a proportion. See Anderson and Finn (1996, p. 364, ISBN: 978-1-4612-8466-6)
Usage
var_of_proportion(p = NULL, n = NULL)
Arguments
p |
a vector of proportions; each of the proportion values must be between 0 and 1 |
n |
a vector of sample sizes; number of observations used to calculate each of the percentage values |
Examples
var_of_proportion(p = 0.56, n = 400)
var_of_proportion(p = 0.5, n = 100)
var_of_proportion(p = 0.4, n = 50)
var_of_proportion(p = c(0.5, 0.9), n = c(100, 200))
[Package kim version 0.5.422 Index]