rbimod function

Simulating mixture normal distributions

Simulating mixture normal distributions

Input simulation metrics returns mixture normal random variable.

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.

  • Maintainer: Brandon LeBeau
  • License: MIT + file LICENSE
  • Last published: 2022-02-07