Description Usage Arguments Details Value References See Also
View source: R/deprecatedFunctions.R
simulateGSMAR
simulates observations from the specified GMAR, StMAR, or G-StMAR process.
Can be utilized for forecasting future values of the process. DEPRECATED, USE simulate.gsmar
INSTEAD!
1 2 3 4 5 6 7 8 9 |
object |
object of class |
nsim |
a positive integer specifying how many values (ahead from |
init_values |
a numeric vector with length |
ntimes |
a positive integer specifying how many sets of simulations should be performed. |
drop |
if |
gsmar |
a class 'gsmar' object, typically generated by |
nsimu |
a positive integer specifying how many values (ahead from |
DEPRECATED, USE simulate.gsmar
INSTEAD!
The argument ntimes
is intended for forecasting: a GSMAR process can be forecasted by simulating its
possible future values. One can perform a large number of sets of simulations and calculate the sample quantiles from
the simulated values to obtain prediction intervals. See the forecasting example below for a hand-on demonstration.
If drop==TRUE
and ntimes==1
(default): $sample
and $component
are vectors
and $mixing_weights
is a (nsim
xM) matrix. Otherwise, returns a list with...
$sample
a size (nsim
xntimes
) matrix containing the simulated values.
$component
a size (nsim
xntimes
) matrix containing the information from which
mixture component each value was generated from.
$mixing_weights
a size (nsim
xMxntimes
) array containing the mixing weights corresponding to the
sample: the dimension [i, , ]
is the time index, the dimension [, i, ]
indicates the regime, and the dimension
[, , i]
indicates the i:th set of simulations.
Galbraith, R., Galbraith, J. 1974. On the inverses of some patterned matrices arising in the theory of stationary time series. Journal of Applied Probability 11, 63-71.
Kalliovirta L. (2012) Misspecification tests based on quantile residuals. The Econometrics Journal, 15, 358-393.
Kalliovirta L., Meitz M. and Saikkonen P. 2015. Gaussian Mixture Autoregressive model for univariate time series. Journal of Time Series Analysis, 36, 247-266.
Meitz M., Preve D., Saikkonen P. 2021. A mixture autoregressive model based on Student's t-distribution. Communications in Statistics - Theory and Methods, doi: 10.1080/03610926.2021.1916531
Virolainen S. 2021. A mixture autoregressive model based on Gaussian and Student's t-distributions. Studies in Nonlinear Dynamics & Econometrics,doi: 10.1515/snde-2020-0060
fitGSMAR
, GSMAR
, predict.gsmar
,
add_data
, cond_moments
, mixing_weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.