E.: Population-level expectation

Description Usage Arguments Value Examples

Description

Expectation of a vector giving the elements of a population.

Usage

1
E.(x, p)

Arguments

x

A numeric vector giving the population.

p

An optional vector of weights. If missing, equal weights are used.

Value

The expectation of x.

Examples

1
2
E.(1:10)
E.(1:10, 10:1)

stevencarlislewalker/popmoments documentation built on May 30, 2019, 4:45 p.m.