Description Usage Arguments Details Value See Also
aggSimilarity
computes aggregate similarity
1 2 |
simM |
an optional (n x n) similarity matrix |
weights |
a (n x n) matrix of weights for weghting matrix to an average |
rw |
(1 x k) vector of weights on sectors |
arc |
logical; should the cosine similarities be transformed to radians (by arccos) first? |
portfolios |
a (n x k) matrix of portfolios where rows represent n subjects and columns their portfolios |
Using arc=TRUE
returns (weighted) mean of 1-(2*arccos(cos(similarity))/pi)
A numeric scalar value of (weighted) mean of the upper traingle of similarity matrix is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.