Description Usage Arguments Value Author(s) References Examples
View source: R/portfoliodiversificationR.R
This function computes the relative Sharpe ratio loss (RSRL) or its modified version (mRSRL) from two vectors of financial returns (a given portfolio and its benchmark). RSRL and mRSRL are both (under)diversification measures. Compared to RSRL, mRSRL is robust to the non-normality of returns.
1 | f_RSRL(v_input_data_portfolio, v_input_data_benchmark, b_input_RSRL_modified, input_prob)
|
v_input_data_portfolio |
A vector of returns |
v_input_data_benchmark |
A vector of returns |
b_input_RSRL_modified |
A boolean value |
input_prob |
A numerical value |
result |
A numeric value |
Jean-Baptiste Hasse
Calvet, Laurent E., John Y. Campbell, and Paolo Sodini. "Down or out: Assessing the welfare costs of household investment mistakes." Journal of Political Economy 115.5 (2007): 707-747.
Candelon, Bertrand, Franz Fuerst, and Jean-Baptiste Hasse. "Diversification Potential in Real Estate Portfolios." (2020) Cambridge Working Paper.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # NOT RUN {
# Load data
data("data_efficient_portfolios_returns")
# Prepare variables
v_port <- data_efficient_portfolios_returns[,2]
v_bench <- data_efficient_portfolios_returns[,1]
# Compute RSRL
f_RSRL(v_port, v_bench, FALSE, 0.95)
# Compute mRSRL
f_RSRL(v_port, v_bench, TRUE, 0.95)
# }
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.