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.


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