vg_fit: Fit Variance Gamma Distribution to a vector of return/stock prices.
Description
This function fits the Variance Gamma (VG) distribution to a given data vector using the
fit.VGuv function from the ghyp package. It returns the estimated parameters along with
the AIC and BIC values for the fitted distribution.
Usage
vg_fit(vec)
Value
a list containing the following elements:
par
a numeric vector of length 4 containing the estimated values for the parameters of the
fitted distribution: lambda (location), mu (scale), sigma (shape), and gamma (skewness).
aic
the Akaike information criterion (AIC) value for the fitted distribution.
bic
the Bayesian information criterion (BIC) value for the fitted distribution.
Arguments
vec
a numeric vector containing the data to be fitted.