Below are my event–study replication packages for the AFP withdrawal episodes in Peru. The code is organised in two self-contained directories of Jupyter notebooks: one for the multi-stock panel and one for the SPBVL index.


1. Multi-stock multifactor event study

Directory: /code/event-study/Multi_Stock_Reg_Multifactor/

This package implements the full pipeline for a panel of individual stocks: merging raw data, cleaning missing values, estimating multifactor regressions, and computing abnormal and cumulative abnormal returns at the stock and portfolio level.

Core notebooks (Python/Jupyter):

Input datasets and intermediate files are stored in the Stocks/ subfolder, together with Excel summaries of the main regression and CAR results.


2. SPBVL index event study

Directory: /code/event-study/SPBVL_Reg/

This package replicates the analysis at the market level using the SPBVL index, following the same structure as the multi-stock code but for a single time series.

Core notebooks:

Additional utilities and robustness checks for alternative announcement dates are collected in the Announcement_Date_Analysis/ subfolder.


Working paper draft

A preliminary write-up of these results is available here: