sieve.bootstrap {nortsTest} | R Documentation |
Generates a sieve bootstrap sample.
Description
The function generates a sieve bootstrap sample for a univariate linear stochastic process.
Usage
sieve.bootstrap(y,reps = 1000,pmax = NULL,h = 100,seed = NULL)
Arguments
y |
a numeric vector or an object of the |
reps |
an integer with the total bootstrap repetitions. |
pmax |
an integer with the max considered lags for the generated
|
h |
an integer with the first |
seed |
An optional |
Details
simulates bootstrap samples for the stochastic process y, using a stationary
auto-regressive model of order "pmax"
, AR(pmax)
. If
pmax = NULL
(default), the function estimates the process maximum
lags using an AIC
as a model selection criteria.
Value
A matrix or reps
row and n
columns, with the sieve
bootstrap sample and n
the time series length.
Author(s)
Asael Alonzo Matamoros.
References
Bulmann, P. (1997). Sieve Bootstrap for time series. Bernoulli. 3(2), 123 -148.
See Also
Examples
# Generating an stationary arma process
y = arima.sim(100,model = list(ar = 0.3))
M = sieve.bootstrap(y)