astMLE: Fitting function for Asymmetric Student-t distribution

Description Usage Arguments Details Value References Examples

View source: R/ast-mle.R

Description

Method for fitting an AST distribution to a univariate data series by Maximum Likelihood Estimation, returns an ast object.

Usage

1
2
astMLE(data, start_pars = c(), fixed_pars = c(), solver = c("nlminb",
  "nloptr", "Rsolnp"), solver_control = list(), symmetric = FALSE)

Arguments

data

a univariate data object to be fitted

start_pars

a named numeric vector of starting parameters for the optimization algorithm, not all parameters are needed

fixed_pars

a named numeric vector of parameters to be kept fixed during the optimization routine, not all parameters are needed

solver

solver used for MLE, one of 'nlminb', 'nloptr', 'Rsolnp', default is 'nlminb'

solver_control

list of control arguments passed to the solver

symmetric

a logical argument, when TRUE, the function fits an SST distribution(Symmetric Student-t, nu1 = nu2) instead, default to FALSE

Details

The astMLE function fits an AST distribution to a univariate data series by estimating the distribution parameters through Maximum Likelihood Estimation.

For details of the list of control arguments, please refer to nlminb, nloptr::nloptr, Rsolnp::solnp

Value

A ast object(S3), the components of the object are:

data

the univariate data object for the AST distribution to be fitted

solver

the solver called

solver_control

the list of control argumetns passed to the solver called

start_pars

named numeric vector of starting parameters used

fixed_pars

named numeric vector of fixed parameters used

symmetric

logical argument controlling the symmetry of tail parameters in the MLE

solver_result

output of the called solver

fitted_pars

named vector of fitted arguemnts of the AST distribution

objective

the optimal log-likelihood value obtained by the solver

time_elapsed

the time elapesed for the MLE routine

message

the message of convergence status produced by the called solver

standard_errors

standard errors of the fitted parameters

References

Zhu, D., & Galbraith, J. W. (2010). A generalized asymmetric Student-t distribution with application to financial econometrics. Journal of Econometrics, 157(2), 297-305.https://www.sciencedirect.com/science/article/pii/S0304407610000266 https://econpapers.repec.org/paper/circirwor/2009s-13.htm

Examples

1
2
3
4
5
6
7
8
9
pars <- c(0.12, 0.6, 0.6, 6, 5)
data <- rast(1000, pars = pars)
fit <- astMLE(data)
summary(fit)
moments(fit)
fitted(fit)
se(fit)
objective(fit)
plot(fit)

dan9401/st documentation built on Sept. 5, 2020, 5:16 a.m.