apaNIGsim(n, alpha, beta, mu, delta)
=apaNIGsim(n, alpha, beta, mu, delta)Result
Returns a vector of random values drawn from a normal inverse Gaussian (NIG) distribution.
Syntax
n: number of observations to simulate
alpha: NIG parameter alpha (tail heaviness)
beta: NIG parameter beta (asymmetry)
mu: NIG parameter mu (location)
delta: NIG parameter delta (scale)
Remarks
This function is volatile, i.e. it is recalculated whenever a change occurs, even if not related to the function’s output. The function is also recalculated when pressing F9.
Note that the NIG distribution is only defined when the kurtosis (not excess kurtosis) exceeds 3 + (5/3)·S², where S is the skewness.
Pressing Esc aborts the calculation; the function then returns "Calculation aborted by user."
