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)

popmoments documentation built on May 2, 2019, 5 p.m.

Related to E. in popmoments...