S2mu: Variance Estimator when the Population Mean is Known

Description Usage Arguments Details Value Examples

View source: R/s2mu.R

Description

S2mu computes a estimation of the variance, given a sample x with known population mean (denoted by mu).

Usage

1
S2mu(x, mu)

Arguments

x

a numeric vector containing the sample.

mu

the population mean.

Details

Given \{x_1,…,x_n\} a sample of a random variable, the variance estimator when the population mean (denoted by μ) is known can be computed as S^2_μ=\frac{1}{n}∑_{i=1}^n (x_i-μ)^2.

Value

A single numerical value corresponding with the variance estimation when the population mean is known.

Examples

1
2
x=rnorm(20)
S2mu(x,mu=0)

LearningStats documentation built on April 21, 2021, 9:06 a.m.