adjusted_window

eap_pl.adjusted_window(returns, anchors, predictors, lead, *, joint=False)

Calculate twelve-month regression sums using market returns observable at formation.

Parameters

Name Type Description Default
returns pl.DataFrame Daily observations from load_daily_beta_inputs(), including days_left, the number of later trading days in each month. required
anchors pl.DataFrame Eligible permno and month pairs. required
predictors Sequence[str] Market return columns for the regressions. required
lead int Longest market lead in trading days (one for Scholes–Williams or five for Dimson). required
joint bool Include cross-products between predictors for a joint regression. False

Returns

Name Type Description
polars.DataFrame Regression sums for formation dates with at least 200 observations after excluding the last lead trading days of the formation month.