Learn R Programming

MultiStatM (version 2.1.0)

IntEdgeworth: Integrate Edgeworth density

Description

Computes the integrals of the \(d\)-variate Edgeworth density with respect to the normal density It integrates the Edgeworth with the first 4 cumulants.

Usage

IntEdgeworth(x, cum, n = 1, type = c("lower", "upper"))

Value

The vector of evaluated probabilities

Arguments

x

An nxd data matrix

cum

Unstandardized first four cumlants

n

the number of elements in the sum of data

type

Character string specifying the integration range. Must be one of:

  • "lower": integrate from \(-\infty\) to \(x\)

  • "upper": integrate from \(x\) to \(+\infty\)

See Also

Other Approximations: Edgeworth(), GramCharlier(), IntGramCharlier(), MTCE()

Examples

Run this code
x <- matrix(1:6,2,3, byrow=TRUE)
cum <- MomCumMVt(p = 12, d = 3, r = 4, nCum = TRUE)
# P(X <= x)
p <- IntEdgeworth(x, cum, type = "lower")

Run the code above in your browser using DataLab