weighted {coop} | R Documentation |
Weighted Co-Operation
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
Examples
x <- matrix(rnorm(10*3), 10, 3)
cov.wt(x)
[Package coop version 0.6-3 Index]