Zhang / Yue Pilon prewhitened trend routines for R.