MBESS (version 4.4.3)

cv: Function to calculate the regular (which is also biased) estimate of the coefficient of variation or the unbiased estimate of the coefficient of variation.

Description

Returns the estimated coefficient of variation or the unbiased estimate of the coefficient of variation.

Usage

cv(C.of.V=NULL, mean=NULL, sd=NULL, N=NULL, unbiased=FALSE)

Arguments

C.of.V

Usual estimate of the coefficient of variation (C.of.V=sd/mean)

mean

observed mean

sd

observed standard deviation (based on N-1 in the denominator of the variance)

N

sample size

unbiased

return the unbiased estimate of the coefficient of variation

Value

Returns the estimated coefficient of variation (regular but biased estimate or unbiased estimate.

Details

A function to calculate the usual estimate of the coefficient of variation or its unbiased estimate.

See Also

ci.cv

Examples

Run this code
# NOT RUN {
cv(mean=100, sd=15)
cv(mean=100, sd=15, N=50, unbiased=TRUE)
cv(C.of.V=.15, N=2, unbiased=TRUE)
# }

Run the code above in your browser using DataCamp Workspace