pop.var {DeclareDesign} | R Documentation |
Population variance function
Description
Population variance function
Usage
pop.var(x, na.rm = FALSE)
Arguments
x |
a numeric vector, matrix or data frame. |
na.rm |
logical. Should missing values be removed? |
Value
numeric scalar of the population variance
Examples
x <- 1:4
var(x) # divides by (n-1)
pop.var(x) # divides by n
[Package DeclareDesign version 1.0.10 Index]