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