Learn R Programming

distributional (version 0.5.0)

dist_mixture: Create a mixture of distributions

Description

[Maturing]

Usage

dist_mixture(..., weights = numeric())

Arguments

...

Distributions to be used in the mixture.

weights

The weight of each distribution passed to ....

Examples

Run this code
dist_mixture(dist_normal(0, 1), dist_normal(5, 2), weights = c(0.3, 0.7))

Run the code above in your browser using DataLab