factor-lab

R

Cross-sectional factor regressions with walk-forward validation and honest transaction costs.

Builds factor portfolios from a cross-section, then runs them through a walk-forward split rather than a single in-sample regression. Costs are charged on turnover, not assumed away.

Written in R because the econometrics packages are better there, and because the plotting is faster to iterate on.

repo →