cor.: Population-level correlation

Description Usage Arguments Value

Description

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

Usage

1
cor.(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 correlation of x and y.


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