rbimod: Simulating mixture normal distributions

Description Usage Arguments Details

View source: R/rbimod.r

Description

Input simulation metrics returns mixture normal random variable.

Usage

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


simglm documentation built on Feb. 7, 2022, 9:08 a.m.