Home   >   User Resources   >   Online Help   >   apaNIGsim.randomized
 

 

Function index Version 3.0.0

apaNIGsim.randomized(n, m_lb, m_ub, v_lb, v_ub, s_lb, s_ub, k_lb, k_ub, AC1_lb, AC1_ub)

Excel=apaNIGsim.randomized(n, m_lb, m_ub, v_lb, v_ub, s_lb, s_ub, k_lb, k_ub, AC1_lb, AC1_ub)

Result

Returns a vector of random values drawn from a NIG distribution with randomized moments, drawn between lower and upper bounds, and a randomized first order autocorrelation.

Syntax

n: number of observations to simulate

m_lb: lower bound of the mean

m_ub: upper bound of the mean

v_lb: lower bound of the variance; must be positive

v_ub: upper bound of the variance; must be positive

s_lb: lower bound of the skewness

s_ub: upper bound of the skewness

k_lb: lower bound of the kurtosis (not excess kurtosis)

k_ub: upper bound of the kurtosis (not excess kurtosis)

AC1_lb: lower bound of the first order autocorrelation

AC1_ub: upper bound of the first order autocorrelation

Remarks

The NIG distribution is only defined when the kurtosis (not excess kurtosis) exceeds 3 + (5/3)·S², where S is the skewness. If the random kurtosis value is too small, it is increased such that the random skewness value becomes feasible.

A non-positive variance bound or a non-finite bound returns an error message.

Pressing Esc aborts the calculation; the function then returns "Calculation aborted by user."