Statistical Modeling of Long Memory and Uncontrolled Effects in Neural Recordings