| delta_GMM {LambertW} | R Documentation | 
Estimate delta
Description
This function minimizes the Euclidean distance between the sample kurtosis of
the back-transformed data W_{\delta}(\boldsymbol z) and a
user-specified target kurtosis as a function of \delta (see
References).  Only an iterative application of this function will give a
good estimate of \delta (see IGMM).
Usage
delta_GMM(
  z,
  type = c("h", "hh"),
  kurtosis.x = 3,
  skewness.x = 0,
  delta.init = delta_Taylor(z),
  tol = .Machine$double.eps^0.25,
  not.negative = FALSE,
  optim.fct = c("nlm", "optimize"),
  lower = -1,
  upper = 3
)
Arguments
| z | a numeric vector of data values. | 
| type | type of Lambert W  | 
| kurtosis.x | theoretical kurtosis of the input X; default:  | 
| skewness.x | theoretical skewness of the input X. Only used if  | 
| delta.init | starting value for optimization; default:  | 
| tol | a positive scalar; tolerance level for terminating 
the iterative algorithm; default:  | 
| not.negative | logical; if  | 
| optim.fct | which R optimization function should be used. Either  | 
| lower,upper | lower and upper bound for optimization. Default:  | 
Value
A list with two elements:
| delta |  optimal  | 
| iterations | number of iterations ( | 
See Also
gamma_GMM for the skewed version of this function;
IGMM to estimate all parameters jointly.
Examples
# very heavy-tailed (like a Cauchy)
y <- rLambertW(n = 1000, theta = list(beta = c(1, 2), delta = 1), 
               distname = "normal")
delta_GMM(y) # after the first iteration