Description Usage Arguments Value Examples

Computes optimal weights of portfolio strategy based on risk measures (StD, VaR, EL, ELD, ES, SDR, EVaR, DEVaR, ENT, DENT, ML) by maximization of the ratio between composed position return and risk. Weights are restricted to be non-negative and with unit sum.

1 | ```
risk.port2(x, alpha = c(0.05), beta = 1, p = 2)
``` |

`x` |
a matrix of observations with each column representing an asset. |

`alpha` |
a vector of probabilities for significance level. |

`beta` |
a positive risk aversion parameter. |

`p` |
a positive value for the power of deviation terms. |

An array with optimal weight for each risk measure at all probabilities of interest for every asset in the portfolio.

1 2 3 4 5 | ```
## Computes optimal weights of a portfolio strategy composed by AAPL, BAC, DOW and SUNE.
data(returns)
s <- returns[1:100, 3:6]
risk.port2(s, 0.05)
``` |

riskR documentation built on May 30, 2017, 4:45 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.