Description Usage Arguments Details Value
View source: R/makeEigenAssets.R
This function takes a set of asset returns and applies the weights from the eigen vectors of the asset returns. These 'synthetic assets' can then be compared to factors or manipulated in other useful ways.
1 | makeEigenAssets(R, rotation = prcomp(R)$rotation)
|
R |
an xts object containing a time series of asset returns. |
rotation |
an optional matrix containing the eigen vectors derived from the assets. |
The calculation is just the matrix multiplication of R
and the
rotation
matrix of R derived from PCA.
an xts object of synthetic 'eigen assets.'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.