nig_fit | R Documentation |
This function fits the Normal Inverse Gaussian (NIG) Distribution to a given data vector using the nig_fit
function from
the fBasics
package. It returns the estimated parameters along with the AIC and BIC values for the fitted
distribution.
nig_fit(vec)
vec |
A numeric vector of data. |
A list with the following elements:
The estimated parameters of the NIG distribution: location, scale, skewness, and shape.
The Akaike Information Criterion (AIC) for the NIG distribution fit.
The Bayesian Information Criterion (BIC) for the NIG distribution fit.
norm_fit
, t_fit
, cauchy_fit
, ghd_fit
, hd_fit
,
sym.ghd_fit
, sym.hd_fit
, vg_fit
, sym.vg_fit
ged_fit
, skew.t_fit
, skew.normal_fit
, skew.ged_fit
stock_prices <- c(10, 11, 12, 13, 14, 17, 18)
returns <- diff(log(stock_prices))
nig_fit(returns)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.