Fmean | R Documentation |
Calculate values of 1 - 4-term Edgeworth expansions (EE) (2nd - 5th order) for the standardized mean.
Fm1(x, n, lam)
Fm2(x, n, lam)
Fm3(x, n, lam)
Fm4(x, n, lam)
x |
numeric vector of quantiles of sampling distribution. |
n |
sample size. |
lam |
a vector of scaled cumulants or their estimates, starting with 3rd (skewness). Term 1 needs a third cumulant only, term 2 - third and fourth (kurtosis), and so on. |
Higher-order approximations of the cumulative distribution function of the standardized sample average.
A vector of the same length as x
containing the values of
Edgeworth expansion of a corresponding order (Fm1
for a 1-term or
2nd order EE, Fm2
for a 2-term EE, and so on).
Fdiff
for EE for two-sample standardized difference in
means and pfuns
for p()
functions used in EE terms.
# Gamma distribution with shape parameter shp
n <- 10
shp <- 3
ord <- 3:6 # orders of scaled cumulants
lambdas <- factorial(ord - 1)/shp^((ord - 2)/2)
x <- seq(2, 5, by = 0.5) # thicker tail
1 - Fm1(x, n, lambdas)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.