extract_risk | R Documentation |
extract the risk value when knowing the weights
extract_risk(R, w, ES_alpha = 0.05, CSM_alpha = 0.05, moment_setting = NULL)
R |
an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns |
w |
the weight of the portfolio |
ES_alpha |
the default value is 0.05, but could be specified as any value between 0 and 1 |
CSM_alpha |
the default value is 0.05, but could be specified as any value between 0 and 1 |
moment_setting |
the default is NULL, should provide moment_setting=list(mu=, sigma=) if customize momentFUN |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.