coefficent_of_variation {kim}R Documentation

Coefficient of variation

Description

Calculates the (population or sample) coefficient of variation of a given numeric vector

Usage

coefficent_of_variation(vector, pop_or_sample = "pop")

Arguments

vector

a numeric vector

pop_or_sample

should coefficient of variation be calculated for a "population" or a "sample"?

Value

a numeric value

Examples

coefficent_of_variation(1:4, pop_or_sample = "sample")
coefficent_of_variation(1:4, pop_or_sample = "pop")

[Package kim version 0.5.422 Index]