var.p {GE} | R Documentation |
Population Variance and Population Standard Deviation
Description
The function var.p computes a population variance. The function sd.p computes a population standard deviation.
Usage
var.p(x, wt = rep(1, length(x)), na.rm = FALSE)
sd.p(x, wt = rep(1, length(x)), na.rm = FALSE)
Arguments
x |
a numeric vector. |
wt |
a numeric vector of weights. By default all elements of x are given the same weight. |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
Functions
-
var.p
: Population variance. -
sd.p
: Population standard deviation.
Examples
var.p(1:6)
var.p(x = 1:5, wt = 6:10)
var.p(x = rep(1:5, 6:10))
sd.p(x = 1:5, wt = 6:10)
sd.p(x = rep(1:5, 6:10))
[Package GE version 0.4.5 Index]