rbimod: Simulating mixture normal distributions

View source: R/rbimod.r

rbimodR 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.


lebebr01/simglm documentation built on April 8, 2024, 9:03 p.m.