Learn R Programming

PortfolioTesteR (version 0.1.4)

ml_plot_ic_roll: Rolling rank-IC plot (rebalance dates; leakage-safe)

Description

Computes the IC time series via ml_ic_series_on_scores() and plots the rolling mean IC over a specified window. Returns the rolling statistics invisibly for further inspection.

Usage

ml_plot_ic_roll(scores_dt, labels_dt, window = 26L, method = "spearman")

Value

(Invisibly) a data frame with Date, roll_mean, roll_sd, roll_ICIR.

Arguments

scores_dt

Scores (wide).

labels_dt

Labels (wide).

window

Integer window length (default 26).

method

Correlation method; "spearman" (default) or "pearson".

Examples

Run this code
if (FALSE) {
ris <- ml_plot_ic_roll(res_xgb$scores, Y, window = 8L)
}

Run the code above in your browser using DataLab