Three essays on nonstationary time series analysis