View source: R/opt.outputMvo.R
opt.outputMvo | R Documentation |
Converts output of 'optimize.portfolio' to a list of the portfolio weights, mean, volatility and Sharpe Ratio.
opt.outputMvo(
opt,
returns,
digits = NULL,
annualize = TRUE,
frequency = "monthly",
rf = 0
)
opt |
List output of 'optimize.portfolio' |
returns |
Multivariate xts object of portfolio assets returns |
digits |
Integer number of significant digits with default NULL |
annualize |
Logical with default TRUE |
frequency |
Returns frequency: "monthly", "weekly" or "daily" |
rf |
Numeric value with default 0.0 |
This function uses the weights returned by optimize.portfolio, along with the portfolio assets returns, and a risk-free rate, to to compute the portfolio mean return, volatility, and Sharpe Ratio.
A list containing the portfolio numeric weights, mean value, volatility and Sharpe Ratio.
R. Douglas Martin
args(opt.outputMvo)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.