Last chance! 50% off unlimited learning
Sale ends in
Computes an initial estimate of
gamma_Taylor(y, skewness.y = skewness(y), skewness.x = 0, degree = 3)
a numeric vector of data values.
skewness of y
.
skewness for input X; default: 0 (symmetric input).
degree of the Taylor approximation; in Goerg (2011) it just
uses the first order approximation (degree = 3
approximation.
Scalar; estimate of
The first order Taylor approximation of the theoretical skewness
Ignoring higher order terms, using the empirical estimate on the left hand
side, and solving
As the Taylor approximation is only good in a neighborhood of gamma_Taylor
is restricted to the interval
The solution of the third order Taylor approximation
IGMM
to estimate all parameters jointly.
# NOT RUN {
set.seed(2)
# a little skewness
yy <- rLambertW(n = 1000, theta = list(beta = c(0, 1), gamma = 0.1),
distname = "normal")
# Taylor estimate is good because true gamma = 0.1 close to 0
gamma_Taylor(yy)
# very highly negatively skewed
yy <- rLambertW(n = 1000, theta = list(beta = c(0, 1), gamma = -0.75),
distname = "normal")
# Taylor estimate is bad since gamma = -0.75 is far from 0;
# and gamma = -0.5 is the lower bound by default.
gamma_Taylor(yy)
# }
Run the code above in your browser using DataLab