pop_var: Population variance and standard deviation

View source: R/pop_var.R

pop_varR Documentation

Population variance and standard deviation

Description

The denominator in n instead of n-1, like in the R base function. Note that missing values are deleted by default.

Usage

pop_var(veval)

Arguments

veval

vector of data.

Details

Note that the second argument, if assigned, causes only one summary of object returned.

Value

the variance and standard deviation

References

https://www.eurofound.europa.eu/system/files/2022-04/introduction-to-the-convergeu-package-0.6.4-tutorial-v2-apr2022.pdf

Examples



myvec<-c(5,2,3,NA,4)
pop_var(myvec)

vec1<-c(10, 20, 15,60,32)
pop_var(vec1)

vec2<-c(NA,NA, 13, 19, 20)
pop_var(vec2)

vec4<-c(seq(from = 5, to = 100, by = 5))
pop_var(vec4)


convergEU documentation built on May 29, 2024, 11:15 a.m.