popvar | R Documentation |
Returns the population variance. Note that var
returns
the unbiased sample estimate of the population variance.
It simply multiplies the result of var
by (n-1) / n with n
the population size.
popvar(x, ...)
x |
a numeric vector, matrix or data frame. |
... |
further arguments passed along to |
x <- c(0,1) ##variance should be 0.5^2=0.25
var(x)
popvar(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.