Description Usage Arguments Details Value Author(s)
Method for simulating and estimating the parameter distribution from an ARFIMA models as well as the simulation based consistency of the estimators given the data size.
1 2 3 4 5 6 | arfimadistribution(fitORspec, data = NULL, n.sim = 2000, n.start = 1,
m.sim = 100, recursive = FALSE, recursive.length = 6000,
recursive.window = 1000, prereturns = NA, preresiduals = NA,
rseed = NA, custom.dist = list(name = NA, distfit = NA, type = "z"),
mexsimdata = NULL, fit.control = list(), solver = "solnp", solver.control = list(),
parallel = FALSE, parallel.control = list(pkg = c("multicore", "snowfall"), cores = 2), ...)
|
fitORspec |
Either an ARFIMA fit object of class |
data |
Required if a specification rather than a fit object is supplied. |
n.sim |
The simulation horizon. |
n.start |
The burn-in sample. |
m.sim |
The number of simulations. |
recursive |
Whether to perform a recursive simulation on an expanding window. |
recursive.length |
If |
recursive.window |
If |
prereturns |
Allows the starting return data to be provided by the user. |
preresiduals |
Allows the starting residuals to be provided by the user. |
rseed |
Optional seeding value(s) for the random number generator. |
custom.dist |
Optional density with fitted object from which to simulate. |
mexsimdata |
Matrix of simulated external regressor-in-mean data. If the fit object contains external regressors in the mean equation, this must be provided. |
solver |
One of either “nlminb” or “solnp”. |
solver.control |
Control arguments list passed to optimizer. |
fit.control |
Control arguments passed to the fitting routine (as in the |
parallel |
Whether to make use of parallel processing on multicore systems. |
parallel.control |
The parallel control options including the type of package for performing the parallel calculations (‘multicore’ for non-windows O/S and ‘snowfall’ for all O/S), and the number of cores to make use of. |
... |
. |
This method facilitates the simulation and evaluation of the uncertainty of ARFIMA model
parameters. The recursive option also allows the evaluation of the simulation based consistency
(in terms of sqrt(N) ) of the parameters as the length (n.sim) of the data increases, in
the sense of the root mean square error (rmse) of the difference between the simulated
and true (hypothesized) parameters.
This is an expensive function, particularly if using the recursive
option, both on
memory (if using mclapply) and CPU resources, performing many re-fits of the simulated data in
order to generate the parameter distribution and it is therefore suggested that, if available,
the multicore package be used (in a system with ideally many cores and at least 4GB of RAM for
the recursion option...).
A ARFIMAdistribution
object containing details of the ARFIMA
simulated parameters distribution.
Alexios Ghalanos
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.