active_return | R Documentation |
Asset annualized return minus Benchmark annualized return
active_return(x, y, t = 252, is_geom = T)
x |
asset returns |
y |
benchmark returns |
t |
frequency of data. 1: yearly, 4: quarterly, 12: monthly, 52: weekly, 252: daily |
is_geom |
TRUE geometric, FALSE simple |
numeric
xx <- c(0.003,0.026,0.015,-0.009,0.014,0.024,0.015,0.066,-0.014,0.039)
yy <- c(0.04,-0.022,0.043,0.028,-0.078,-0.011,0.033,-0.049,0.09,0.087)
active_return(xx,yy,t=12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.