desireVar: Computes mixture normal variance

View source: R/desireVar.r

desireVarR Documentation

Computes mixture normal variance

Description

Input the desired variance, number of distributions, and mean of the distributions, returns a value of the variance of each mixture distribution.

Usage

desireVar(desVar, num_dist, means, equalWeight = TRUE)

Arguments

desVar

Desired overall variance of mixture normal distribution.

num_dist

Number of normal distributions.

means

Vector of means for each normal distribution. Must equal num_dist.

equalWeight

Should equal weights be used, only TRUE is currently supported.

Details

This function can be used to generate the inputs for the rbimod variances when a specific variance is desired. Especially useful when attempting to simulate a mixture normal/bimodal distribution.


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