variance_complete {exactLTRE} | R Documentation |
A function for variance assuming a complete sample
Description
The variance, assuming a complete sample, is the mean of the squared
deviations. When you assume an incomplete sample (the standard assumption in
statistics), the variance is calculated as the sum of squared deviations,
divided by (N-1), where N is the number of observations in the sample. As
such, the output of variance_complete
will always be smaller than the
output of var
.
Usage
variance_complete(x)
Arguments
x |
A numeric vector that represents a complete sample. |
Value
The variance of the entries of x, calculated with the assumption that
x represents a complete sample. Compare to the output of
var
.
See Also
Examples
test<- c(5, 6, 8, 10, 25)
Vc<- variance_complete(test)
# compare this output with that of var()
[Package exactLTRE version 0.1.0 Index]