boot.Cenarma {cents} | R Documentation |
Simulates a time series from the model fit by cenarma() and produces an object of class 'cents'.
boot.Cenarma(obj, ...)
obj |
the output from cenarma() |
... |
optional arguments, not used |
Simulated time series as a cents object
set.seed(43137) n <- 200 z <- arima.sim(model=list(ar=0.8), n) i <- sample(1:n, size=floor(0.25*n)) z[i] <- NA ANS <- cenarma(y=z, p=1) out <- boot.Cenarma(ANS) cenarma(out$y, p=1)