var_of_proportion: Variance of a proportion

View source: R/var_of_proportion.R

var_of_proportionR 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))

kim documentation built on Oct. 9, 2023, 5:08 p.m.