vgChangePars {VarianceGamma} | R Documentation |
Change Parameterizations of the Variance Gamma Distribution
Description
This function interchanges between the following 4 parameterizations of the variance gamma distribution:
1.
2.
3.
4.
The first set of parameterizations is given in Seneta (2004). The second and
third ones are the parameterizations given in Kotz . (2001). The
last set takes the form of the generalized hyperbolic distribution
parameterization.
is not included since the
variance gamma distribution is a limiting case of generalized
hyperbolic distribution with
always equal to 0.
Usage
vgChangePars(from, to, param, noNames = FALSE)
Arguments
from |
The set of parameters to change from. |
to |
The set of parameters to change to. |
param |
"from" parameter vector consisting of 4 numerical elements. |
noNames |
Logical. When |
Details
In the 3 parameterizations, the following must be positive:
1.
2.
3.
4.
In addition in the 4th parameterization, the absolute value of
must be less than
.
Value
A numerical vector of length 4 representing param
in the
to
parameterization.
Author(s)
David Scott d.scott@auckland.ac.nz, Christine Yang Dong c.dong@auckland.ac.nz
References
Seneta, E. (2004). Fitting the variance-gamma model to financial data. J. Appl. Prob., 41A:177–187. Kotz, S, Kozubowski, T. J., and Podgórski, K. (2001). The Laplace Distribution and Generalizations. Birkhauser, Boston, 349 p.
See Also
Examples
param1 <- c(2,2,1,3) # Parameterization 1
param2 <- vgChangePars(1, 2, param1) # Convert to parameterization 2
param2 # Parameterization 2
vgChangePars(2, 1, as.numeric(param2)) # Convert back to parameterization 1
param3 <- c(1,2,0,0.5) # Parameterization 3
param1 <- vgChangePars(3, 1, param3) # Convert to parameterization 1
param1 # Parameterization 1
vgChangePars(1, 3, as.numeric(param1)) # Convert back to parameterization 3