| vgFitStart | R Documentation | 
Finds starting values for input to a maximum likelihood routine for fitting variance gamma distribution to data.
  vgFitStart(x, breaks = NULL, startValues = "SL", paramStart = NULL,
             startMethodSL = "Nelder-Mead",
             startMethodMoM = "Nelder-Mead", ...)
  vgFitStartMoM(x, startMethodMoM = "Nelder-Mead", ...)
x | 
 Data vector.  | 
breaks | 
 Breaks for histogram. If missing, defaults to those
generated by
  | 
startValues | 
 Vector of the different starting values to consider. See Details.  | 
paramStart | 
 Starting values for param if
  | 
startMethodSL | 
 Method used by call to   | 
startMethodMoM | 
 Method used by call to   | 
... | 
 Passes arguments to   | 
Possible values of the argument startValues are the following:
"US"User-supplied.
"SL"Based on a fitted skew-Laplace distribution.
"MoM"Method of moments.
If startValues = "US" then a value must be supplied for
paramStart.
If startValues = "MoM", vgFitStartMoM is
called. These starting values are based on Barndorff-Nielsen et
al (1985).
If startValues = "SL", or startValues = "MoM" an initial
optimisation is needed to find the starting values. These
optimisations call optim.
vgFitStart returns a list with components:
vgStart | 
 A vector with elements   | 
xName | 
 A character string with the actual   | 
breaks | 
 The cell boundaries found by a call to
  | 
midpoints | 
 The cell midpoints found by a call to
  | 
empDens | 
 The estimated density found by a call to
  | 
vgFitStartMoM returns only the method of moments estimates
as a vector with elements vgC, lSigma (log of sigma),
theta and lNu (log of nu).
David Scott d.scott@auckland.ac.nz, Christine Yang Dong c.dong@auckland.ac.nz
Seneta, E. (2004). Fitting the variance-gamma model to financial data. J. Appl. Prob., 41A:177–187.
dvg, dskewlap,
vgFit, hist, and
optim.
param <- c(0,0.5,0,0.5)
dataVector <- rvg(500, param = param)
vgFitStart(dataVector,startValues="SL")
vgFitStartMoM(dataVector)
vgFitStart(dataVector,startValues="MoM")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.