Simulating mixture normal distributions
Input simulation metrics returns mixture normal random variable.
rbimod(n, mean, var, num_dist)
n
: Number of random draws. Optionally can be a vector with number in each simulated normal distribution.mean
: Vector of mean values for each normal distribution. Must be the same length as num_dist.var
: Vector of variance values for each normal distribution. Must be the same length as num_dist.num_dist
: Number of normal distributions to use when simulating mixture normal distribution.Function to simulate mixture normal distributions. The function computes adds the specified number of normal distributions into a single vector.
Use of the function desireVar
can be used to generate a mixture normal distribution with a specific global variance.