weighted: Weighted Co-Operation

Description Arguments Details Author(s) See Also Examples

Description

An optimized, efficient implemntation for computing weighted covariance, correlation, and cosine similarity. Similar to R's cov.wt().

Arguments

x

A matrix or data.frame.

wt

A vector of weights or scalar weight.

method

Either "unbiased" or "ml". Unlike R, case is ignored.

Details

See ?coop-package for implementation details.

Author(s)

Drew Schmidt

See Also

cosine, pcor, and covar

Examples

1
2
x <- matrix(rnorm(10*3), 10, 3)
cov.wt(x)

coop documentation built on Sept. 19, 2021, 5:07 p.m.