rtvvar {ssaBSS}R Documentation

Simulation of Time Series with Time-varying Variance

Description

Simulating time-varying variance based on TV-VAR model

Usage

rtvvar(n, alpha, beta = 1, simple = FALSE)

Arguments

n

Length of the time series

alpha

Parameter α\alpha in TV-VAR

beta

Parameter β\beta in TV-VAR. Default is 1.

simple

A logical vector indicating whether hth_t is considered as its own process, or just t/Tt/T. Default is FALSE.

Details

Time varying variance (TV-VAR) process xtx_t with parameters α\alpha and β\beta is of the form

xt=h~tϵt,x_t = \tilde h_t \epsilon_t,

where, if simple = FALSE,

h~t2=ht2+αxt12,\tilde h_t^2 = h_t^2 + \alpha x_{t-1}^2,

where ϵ\epsilon are iid N(0,1)N(0,1), x0=0x_0 = 0 and ht=1010sin(βπt/T+π/6)(1+t/T)h_t = 10 - 10 \sin(\beta \pi t/T + \pi/6) (1 + t/T),

and if simple = TRUE,

h~t=t/T.\tilde h_t = t/T.

Value

The simulated series as a ts object.

Author(s)

Sara Taskinen, Markus Matilainen

References

Patilea V. and Raïssi H. (2014) Testing Second-Order Dynamics for Autoregressive Processes in Presence of Time-Varying Variance, Journal of the American Statistical Association, 109 (507), 1099-1111.

Examples


n <- 5000
X <- rtvvar(n, alpha = 0.2, beta = 0.5, simple = FALSE)
plot(X)


[Package ssaBSS version 0.1.1 Index]