Michael T. Owyang, Jeremy Piger, and Daniel Soques, "Contagious Switching", Journal of Applied Econometrics, Vol. 37, No. 2, 2022, pp. 415-432. All files are zipped in the file ops-files.zip. OPS_Data.xlsx contains the data. The page "Details" contains variable descriptions and sources. OPS_PCA.m conducts the principal components analysis. OPS_Main.m estimates each model specification and saves the results as mat files. OPS_Tables_Figures.m generates the exhibits after running OPS_Main.m The folder "functions" contains all the necessary subroutines.