Learn R Programming

kim (version 0.6.1)

var_of_percentage: Variance of a percentage

Description

Calculate the variance of a percentage. See Fowler, Jr. (2014, p. 34, ISBN: 978-1-4833-1240-8)

Usage

var_of_percentage(percent = NULL, n = NULL)

Arguments

percent

a vector of percentages; each of the percentage values must be between 0 and 100

n

a vector of sample sizes; number of observations used to calculate each of the percentage values

Examples

Run this code
var_of_percentage(percent = 40, n = 50)
var_of_percentage(percent = 50, n = 10)

Run the code above in your browser using DataLab