Description Usage Arguments Details
View source: R/TimeSeriesUtility.R
Net y returns from x returns based on boolean index
1 | excess_ret_bool(x, y, freq, net_rf = TRUE)
|
x |
data.frame of multivariate returns |
y |
data.frame of univariate returns |
freq |
character to specify common or desired frequency |
net_rf |
boolean index to specify which |
Suppose x
is a data.frame with 3 asset time-series and we only
want to net y
from the 2nd asset. net_rf
should be set to
c(FALSE, TRUE, FALSE)
. Note a single net_rf
of TRUE
or
FALSE
will respectively net all or none of x
. See excess_ret
for more info.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.