rmixture {drape}R Documentation

Symmetric mixture two Gaussian random variables.

Description

The resulting distribution is mean zero, variance one. X ~ N(-sqrt(1-sd^2),sd^2) wp 0.5, N(sqrt(1-sd^2),sd^2) wp 0.5.

Usage

rmixture(n, sd)

Arguments

n

number of observations.

sd

standard deviation of each Gaussian.

Value

vector of length n


[Package drape version 0.0.1 Index]