descriptives: Simple descriptive statistics

Description Usage Arguments Examples

Description

Variance and standard deviation by populations

Usage

1
2
3
4
5
variance(x, method = c("sample", "population"), na.rm = TRUE)

stdev(x, method = c("sample", "population"), na.rm = FALSE)

sterr(x, method = c("sample", "population"), na.rm = FALSE)

Arguments

x

A numeric vector

method

Either the "sample" or the "population" calculated

na.rm

Logical, if 'TRUE', 'NA' values are removed

standardized

Examples

1
2
3
4
5
x <- c(1:20)
stdev(x)
stdev(x, "p"); stats::sd(x)
variance(c(x, NA), na.rm = TRUE)
sterr(c(x, NA), na.rm = TRUE)

jmbarbone/qpm documentation built on July 25, 2020, 10:41 p.m.