I am reading this paper: Extracting cycles from Nonstationary Data
I wish to recreate the Monte Carlo simulation in this paper.
I have a query prior to doing this.
On page 8, there is footnote 9, where the author says:
We backfilled $ \epsilon_t $ using 100 observations. This is to ensure that innovation sequence is consistent with the AR(1) generating mechanism.
I did not follow. Can someone please explain to me how to do this ? What exactly is backfilling ?
Here is how I can generate an AR1 sequence similar to the one in the simulation in the paper, of length=216 and autoregressive parameter =.34, using the R programming language:
arima.sim(model =list(ar=.34,order=c(1,0,0)),n=216)
How do I backfill ? Can someone please help me ?
Edit following discussion with mlofton:
Is this how we backfill with a 100 observations??
backfilled.time.series <- c(arima.sim(model =list(ar=.34,order=c(1,0,0)),n=100),
arima.sim(model =list(ar=.34,order=c(1,0,0)),n=216))
or perhaps :
backfilled.time.series <- arima.sim(model =list(ar=.34,order=c(1,0,0)),n=216,n.start=100)
Query : How is backfilling different to generating a longer time series, and ignoring the initial part of the series (which I think is called the burn-in period)?
Edit 2 after reading mlofton's initial response on backfilling:
# Assume that the series to be generated has unconditional mean = 0 and unconditional variance = 1
Here are the IID values as suggested by mlofton
initial.values = rnorm(100,1,0)
backfilled.time.series = arima.sim(model =list(ar=.34,order=c(1,0,0)),n=216,n.start=100,start.innov = initial.values))