The function implements the sequential Monte Carlo method using sequential importance sampling for stochastic volatility models.
wrap.SMC(par.natural, yy, mm, setseed = T, resample = T)
The function returns the log-likelihood of the data.
contains three parameters in AR(1) model. The first one is the stationary mean, the second is the AR coefficient, and the third is stationary variance.
the data.
the Monte Carlo sample size.
the seed number.
the logical value indicating for resampling.
Tsay, R. and Chen, R. (2018). Nonlinear Time Series Analysis. John Wiley & Sons, New Jersey.