gamma_GMM | R Documentation |
This function minimizes the Euclidean distance between the theoretical
skewness of a skewed Lambert W x Gaussian random variable and the sample
skewness of the back-transformed data W_{\gamma}(\boldsymbol z)
as
a function of \gamma
(see References). Only an interative
application of this function will give a good estimate of \gamma
(see IGMM
).
gamma_GMM(
z,
skewness.x = 0,
gamma.init = gamma_Taylor(z),
robust = FALSE,
tol = .Machine$double.eps^0.25,
not.negative = FALSE,
optim.fct = c("optimize", "nlminb")
)
z |
a numeric vector of data values. |
skewness.x |
theoretical skewness of the input |
gamma.init |
starting value for |
robust |
logical; if |
tol |
a positive scalar; tolerance level for terminating the iterative
algorithm; default: |
not.negative |
logical; if |
optim.fct |
string; which R optimization function should be used. By
default it uses |
A list with two elements:
gamma |
scalar; optimal |
iterations |
number of iterations ( |
delta_GMM
for the heavy-tail version of this
function; medcouple_estimator
for a robust measure of asymmetry;
IGMM
for an iterative method to estimate all parameters
jointly.
# highly skewed
y <- rLambertW(n = 1000, theta = list(beta = c(1, 2), gamma = 0.5),
distname = "normal")
gamma_GMM(y, optim.fct = "nlminb")
gamma_GMM(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.