Population variance function
Arguments
- x
a numeric vector, matrix or data frame.
- na.rm
logical. Should missing values be removed?
Examples
x <- 1:4
var(x) # divides by (n-1)
#> [1] 1.666667
pop.var(x) # divides by n
#> [1] 1.25
Population variance function
a numeric vector, matrix or data frame.
logical. Should missing values be removed?
x <- 1:4
var(x) # divides by (n-1)
#> [1] 1.666667
pop.var(x) # divides by n
#> [1] 1.25