Links to Code and Data

Feb 23, 2026 · 3 min read
ResourceDescription
Forecasting: Principles and Practice (3rd ed)Free online textbook by Hyndman & Athanasopoulos — the go-to reference for time-series forecasting in R
Machine Learning for Factor InvestingFree online textbook by Coqueret & Guida — ML methods applied to equity asset allocation, with reproducible R code
Reproducible Research Workshop (UZH)Introduction to reproducible research practices with R and Git (archived workshop materials)
Justin Esarey’s Teaching PageQuantitative methods syllabi and materials spanning courses from introductory stats to Bayesian methods

Replications & Code

ResourceDescription
Open Source Asset PricingReplication of 200+ asset pricing signals; download returns and characteristics from the published literature
Global Factor Data (JKP)Jensen, Kelly & Pedersen (2023) factor database — 153 characteristics across 93 countries with a common task framework
Interacting AnomaliesInteractive exploration of anomaly interactions in the cross-section of stock returns
Wayne Chang’s R CodeR code for factor model replication and time-series methods
Christoph Jäckel’s Replication BlogBlog-style replications of classic finance papers in R
Jeremiah Green’s WebsiteR code and data for accounting and finance research

Machine Learning

ResourceDescription
TensorFlow PlaygroundInteractive neural network visualization — ideal for building intuition about deep learning
Machine Learning for Factor InvestingFree textbook with R (and Python) code for ML in asset management

ESG Investing

ResourceDescription
Thierry Roncalli — Sustainable FinanceLecture slides and course materials on portfolio construction and ESG from a practitioner/academic perspective
Guillaume Coqueret — ResearchResearch page including work on ESG, green returns, and sustainable equity investing

Data

ResourceDescription
Ivo Welch’s Professional PageGateway to the Critical Finance Review, data resources, and editorial work
Goyal–Welch DataAnnual and monthly predictor data from Goyal & Welch (2008), regularly updated
Amit Goyal’s Data PageComprehensive equity predictor dataset (with Welch), used in hundreds of return predictability studies
Open Source Asset Pricing200+ replicated signals with monthly returns and firm characteristics ready to download
Global Factor Data (JKP)153 global equity factors across 93 countries; WRDS integration available
Sydney Ludvigson’s DataMacro uncertainty indexes (LN uncertainty), financial conditions data, and replication files
Lubos Pastor’s DataPolitical uncertainty index, ESG portfolios, mutual fund performance data
Lasse Pedersen’s DataEquity factor returns, value/momentum, carry, time-series momentum, and quality datasets
Jeffrey Wurgler’s DataInvestor sentiment index (Baker & Wurgler) and related datasets
Harvard DataverseOpen repository for research data across disciplines
Robert Shiller’s DataLong-run equity/bond data, CAPE ratio, and housing data (Yale)

My R Packages

PackageDescription
crypto2Download historical cryptocurrency data from CoinMarketCap — prices, market caps, and exchange data without an API key. GitHub
ffdownloadAutomated download and import of Ken French’s factor data library into R. GitHub
rqmomsRisk-neutral higher moments of the return distribution estimated from option prices. GitHub

Other Academic R Code

ResourceDescription
Justin Esarey’s Teaching PageQuantitative social science course materials including Bayesian, causal inference, and time-series R labs