R/declare_diagnosands.R
pop.var.Rd
Population variance function
pop.var(x, na.rm = FALSE)
a numeric vector, matrix or data frame.
logical. Should missing values be removed?
numeric scalar of the population variance
x <- 1:4 var(x) # divides by (n-1) #> [1] 1.666667 pop.var(x) # divides by n #> [1] 1.25