monthly_panel
eap_pl.monthly_panel(sizes, first, last, *, monthly_factors=None, vintage=None)Join formation-month characteristics to next-month excess returns.
Estimates beta on demand and reads crsp/msf and crsp/msedelist from the local Parquet repository. By default, it also reads ff/factors_monthly. On a delisting, the recorded delisting return replaces the usual stock return. Missing delisting returns use −30% for poor performance and −100% otherwise.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| sizes | polars.DataFrame or polars.LazyFrame | Characteristics keyed by permno and the first day of the formation month. |
required |
| first | polars.Expr | First formation month, such as pl.date(1963, 6, 1). |
required |
| last | polars.Expr | Last formation month, inclusive. | required |
| monthly_factors | polars.DataFrame or polars.LazyFrame | Monthly factor table with date, mktrf, and rf in decimal units. Overrides the monthly series selected by vintage. | None |
| vintage | str | int | None | French archive vintage in YYYYMM format for daily beta inputs and the monthly factors, or None for WRDS. | None |
Returns
| Name | Type | Description |
|---|---|---|
| polars.LazyFrame | Query with one row per beta observation, including the 12-month daily beta, the supplied characteristics, and next-month excess and market in percentage points. |