desireVar function

Computes mixture normal variance

Computes mixture normal variance

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

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.

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