ch.propVar: A function calculate the variance of a proportion

View source: R/ch.propVar.r

ch.propVarR Documentation

A function calculate the variance of a proportion

Description

This function calculates the variance of a proportion.

Usage

ch.propVar(p, n)

Arguments

p

A numeric vector containing the proportions that variance will be calculated.

n

A numeric vector containing the number of observations for each proportion. '

Value

a numeric vector of the variances for each proportion in p.

Examples

ch.propVar (c(0.5, 0.2, 0.1), c(100, 150, 50))

ccpluncw/ccpl_R_chutils documentation built on Feb. 28, 2024, 1:17 a.m.