rbimod {simglm} | R Documentation |
Simulating mixture normal distributions
Description
Input simulation metrics returns mixture normal random variable.
Usage
rbimod(n, mean, var, num_dist)
Arguments
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. |
Details
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.
[Package simglm version 0.8.9 Index]