Code by Marne C. Cario and Barry L. Nelson to simulate stationary time series with arbitrary marginal distributions and feasible autocorrelation structure specified through lag p.
Tests for AR(1) Parameter in Regression Models with Autocorrelated Errors. Univariate and multivariate Bayesian ARFIMA. By Nalini Ravishanker and coworkers.