View source: R/rollScreening.R
| rollScreening | R Documentation |
Runs a peer performance screening on a rolling time window and
returns the time series of cross-sectionally averaged peer performance
ratios. This is the design underlying the dynamic analyses of Ardia et al.
(2022, 2023): on each window the screening is computed and the ratios are
averaged across funds (per coefficient when screen_beta = TRUE),
yielding a series of (factor exposure) heterogeneity measures.
rollScreening(
X,
factors = NULL,
Y = NULL,
screen = c("alpha", "sharpe", "msharpe"),
width = 36L,
by = 1L,
level = 0.9,
na.neg = TRUE,
control = list(),
dates = NULL
)
X |
Matrix |
factors |
Matrix |
Y |
Optional matrix |
screen |
Performance measure to screen on: |
width |
Window length (number of observations). Default: |
by |
Step (in observations) between successive windows. Default:
|
level |
Modified Value-at-Risk level (for |
na.neg |
A logical value passed to |
control |
Control parameters passed to the screening function (see
|
dates |
Optional vector of length |
A data.frame of class rollScreening with one row per
window (or per window/coefficient when screen_beta = TRUE), with
columns window, index (end-of-window row), optionally
date, coefficient, the averaged pizero/pipos/
pineg, and heterogeneity (1-\bar\pi^0).
David Ardia and Kris Boudt.
Ardia, D., Bluteau, K., Tran, D. (2022). How easy is it for investment managers to deploy their talent in green and brown stocks? Finance Research Letters 48, 102992.
Ardia, D., Bluteau, K., Lortie-Cloutier, G., Tran, D. (2023). Factor exposure heterogeneity in green and brown stocks. Finance Research Letters 55, Part A, 103900.
alphaScreening, exposureHeterogeneity.
data("hfdata")
set.seed(1234)
## a subset keeps the example quick; drop the column index to screen the
## whole universe
roll <- rollScreening(hfdata[, 1:20], screen = "alpha", width = 36, by = 6,
control = list(nCore = 1))
plot(roll)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.