Description Usage Arguments Value Examples
This function calculates the returns of all of the portfolios considered, adding in a portfolio with even weight across the universe for comparison
1 2 | calc_returns(weighted_universe, universe, portfolio.weight, ret.var,
points)
|
weighted_universe |
is the universe parameter with characteristic-matching random weights joined |
universe |
is the universe of assets and their characteristics |
portfolio.weight |
is the name of the column which contains the target portfolio weights (for calculating exposures) |
ret.var |
is the name of the column which contains the returns of each asset |
points |
is the number of randomly sampled portfolios |
returns, a data.frame of each portfolio's return
1 2 3 4 | ## Not run:
returns <- calc_returns(weighted_universe, universe, portfolio.weight, ret.var, points)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.