Description Usage Arguments Value Examples
Title
1 2 3 4 5 6 7 | weigh_mvef(
R,
short = "no",
risk_premium = 0.5,
max_allocation = NULL,
tangency = FALSE
)
|
R |
xts object of asset returns |
short |
argument if short-selling is allowed, "no" by default |
risk_premium |
risk premium used for modelling |
max_allocation |
maximum fraction allowed for any of the asset positions |
tangency |
logical. Should a tangency portfolio, maximum sharpe ratio, be calculated |
xts object containing asset weights
1 | weigh_mvef(stock_returns, max_allocation = 0.05, risk_premium = 0.4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.