fit_nig: Estimation of the Normal-Inverse Gaussian Distribution

View source: R/fit_margins.R

fit_nigR Documentation

Estimation of the Normal-Inverse Gaussian Distribution

Description

Performs the estimation on the Normal-Inverse Gaussian (NIG) distribution (univariate and multivariate). Wrappers fit.NIGuv and fit.NIGmv.

Usage

fit_nig(x, symmetric = FALSE)

## Default S3 method:
fit_nig(x, symmetric = FALSE)

## S3 method for class 'tbl'
fit_nig(x, symmetric = FALSE)

## S3 method for class 'xts'
fit_nig(x, symmetric = FALSE)

## S3 method for class 'matrix'
fit_nig(x, symmetric = FALSE)

Arguments

x

A tabular (non-tidy) data structure.

symmetric

A logical flag. Should the fitted distribution be symmetric? Defaults to FALSE.

Value

A list of the the class cma_fit with 21 components.

See Also

fit_ghd fit_hyp fit_vg fit_t fit_normal

Examples

x <- matrix(diff(log(EuStockMarkets)), ncol = 4)

# multivariate estimation
fit_nig(x)

# univariate estimation
fit_nig(x[ , 4, drop = FALSE])

Reckziegel/CMA documentation built on July 13, 2022, 10:31 p.m.