sample_var | R Documentation |
sample_var
computes the sample variance, i.e. the sum of squared deviations of x
from the mean divided by the total number of observations. This is in contrast to var
, which computes an unbiased estimate of the variance (i.e. it divides the sum of squared deviations by n - 1).
sample_var(x, na.rm = FALSE)
x |
Numeric vector |
na.rm |
(logical) Should missing values be removed? |
A single numeric value equal to the sample variance
data(anchoring)
sample_var(anchoring$everest_feet)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.