Generates the weighted density of the GOGARCH NIG or GH model.
## S3 method for class 'gogarch.estimate'tsconvolve( object, weights =NULL, fft_step =0.001, fft_by =1e-04, fft_support = c(-1,1),...)## S3 method for class 'gogarch.predict'tsconvolve( object, weights =NULL, fft_step =0.001, fft_by =1e-04, fft_support = c(-1,1), distribution =FALSE,...)## S3 method for class 'gogarch.simulate'tsconvolve( object, weights =NULL, fft_step =0.001, fft_by =1e-04, fft_support = c(-1,1), distribution =FALSE,...)
Arguments
object: an object of class gogarch.estimate , gogarch.predict
or gogarch.simulate .
weights: A vector of weights of length equal to the number of series. If NULL then an equal weight vector is used. A time varying matrix of weights is also allowed with the correct number of rows (time points or horizon).
fft_step: determines the step size for tuning the characteristic function inversion.
fft_by: determines the resolution for the equally spaced support given by fft_support.
fft_support: allows either a fixed support range to be given for the inversion else this is calculated (if NULL) by examining the upper and lower quantiles of each independent factor modeled. For the Generalized Hyperbolic distribution, it is not recommended to leave this as NULL since it is quite expensive to calculate the quantiles and will significantly slow down execution time.
...: not currently supported.
distribution: for the simulated and predicted object, whether to apply to each draw or on the average across draws (for the predicted object this is the analytic solution rather than the average).
Returns
an object of class gogarch.fft or gogarch.fftsim .
Details
The Fast Fourier Transformation (FFT) is used to approximate the weighted density based on its characteristic function. The weighted density is based on the convolution of the scaled densities of the independent factors, by using the Jacobian transformation (for more details see the vignette). The returned object will be a list with the convoluted density for each time point (or each time point and draw). This can then be passed to the dfft, pfft or qfft methods which create smooth distributional functions.