Description Usage Arguments Value See Also Examples
combine rtn.periods and rtn.summary
1 | rtn.persum(rtn, freq = "year", Rf = 0, showPer = T)
|
rtn |
an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns |
freq |
An interval specification, one of "day", "week", "month", "quarter" and "year", optionally preceded by an integer and a space, or followed by "s".See |
Rf |
risk free rate, in same period as your returns |
a matrix, giving the summary infomation of the rtn series,including Annualized Return,Annualized Std Dev,Annualized Sharpe,HitRatio,Worst Drawdown
1 2 3 | rtn <- rtndemo
rtn <- xts::xts(rtn[,-1],rtn[,1])
rtn.persum(rtn)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.