ged_fit: Fit Generalized Error Distribution to a vector of returns/stock prices.
Description
This function fits the Generalized Error Distribution (GED) to a given data vector using the ged_fit function from
the fGarch package. It returns the estimated parameters along with the AIC and BIC values for the fitted
distribution.
Usage
ged_fit(vec)
Value
A list with the following elements:
params
A numeric vector of length 3 containing the fitted GED parameters: shape, scale, and location.
aic
The Akaike Information Criterion (AIC) for the fitted model.
bic
The Bayesian Information Criterion (BIC) for the fitted model.