Learn R Programming

PortfolioTesteR (version 0.1.4)

roll_ic_stats: Rolling IC mean, standard deviation, and ICIR

Description

Compute rolling information coefficient (IC) statistics from a per-date IC series.

Usage

roll_ic_stats(ic_dt, window = 26L)

Value

A data.table with columns Date, IC_mean, IC_sd, and ICIR.

Arguments

ic_dt

Data frame/data.table produced by ic_series with columns Date and IC.

window

Integer window length for the rolling statistics.

Details

For each rolling window, compute the mean IC, the standard deviation of IC, and the information coefficient ratio (ICIR = mean / sd). Windows with fewer than two finite IC values yield NA for ICIR.