I have some mortgage data and I am trying to detect when a borrower refinances. To do so, I use a moving average filter to smooth my data and then I run a Bai and Perron (1998) structural break test on the borrowers monthly payments. I am wondering if it would make more sense to smooth the levels of the data or the monthly payments. I have tried both but I get pretty different results. What makes more sense to best identify mean shifts in the monthly payment?
I have read a little bit about this, and I never see a discussion about what makes more sense to smooth. I imagine it is on a case-by-case basis.