Combine several wide score panels (Date + symbols) into a single panel
by applying one of several aggregation methods.
combine_scores(
scores_list,
method = c("mean", "weighted", "rank_avg", "trimmed_mean"),
weights = NULL,
trim = 0.1
)A data.table with columns Date + symbols, containing the combined scores.
List of wide score panels to combine (each has columns Date + symbols).
Character, one of "mean", "weighted", "rank_avg", "trimmed_mean".
Optional numeric vector of length equal to length(scores_list); used only when method = "weighted".
Numeric in [0, 0.5); fraction to trim from each tail for method = "trimmed_mean".
method = "mean": simple column-wise mean across panels.
method = "weighted": weighted mean; see weights.
method = "rank_avg": average of within-date normalized ranks.
method = "trimmed_mean": mean with trim fraction removed at both tails.