cov.: Population-level covariance

Description Usage Arguments Value

Description

Covariance of two vectors giving the elements of a bivariate population.

Usage

1
cov.(x, y, p)

Arguments

x

A numeric vector giving the first variable of the population.

y

A numeric vector giving the second variable of the population.

p

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

Value

The covariance of x and y.


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