build_annual_panel

eap_pl.build_annual_panel(
    start_year=1988,
    end_year=2012,
    *,
    annual_betas=None,
    vintage=None,
)

Join December stock characteristics to next-year excess returns.

The beta sample defines the stock-year rows. Compounds available monthly CRSP returns and subtracts the compounded risk-free return, which requires all 12 months. The final formation year has no next-year return because the sample ends in that calendar year.

Parameters

Name Type Description Default
start_year int First formation year, inclusive. 1988
end_year int Last formation year and last calendar year of returns, inclusive. 2012
annual_betas pl.DataFrame | pl.LazyFrame | None Optional December estimates to reuse from load_annual_betas(). Supply every stock-year needed for the panel. None
vintage str | int | None French archive vintage in YYYYMM format for daily beta estimation and the monthly risk-free rate, or None for WRDS. None

Returns

Name Type Description
polars.DataFrame Stock-year observations with permno, year, Beta, market capitalization in millions (MktCap), its log (Size), signed book-to-market (BM), and next-year excess return in percentage points (excess).