UnivarMixingDistribution

0th

Percentile

Generating function for Class "UnivarMixingDistribution"

Generates an object of class "UnivarMixingDistribution".

Keywords
distribution, list
Usage
UnivarMixingDistribution(..., Dlist, mixCoeff, 
                                withSimplify = getdistrOption("simplifyD"))
Arguments
...
Objects of class "UnivariateDistribution" (or subclasses)
Dlist
an optional list or object of class "UnivarDistrList"; if not missing it is appended to argument ...; this way UnivarMixingDistribution may also be called with a list (or "UnivarDistrList"-obj
mixCoeff
Objects of class "numeric" : a vector of probabilities for the mixing components (must be of same length as arguments in ...).
withSimplify
"logical": shall the return value be piped through a call to simplifyD?
Details

If mixCoeff is missing, all elements in ... are equally weighted.

Value

  • Object of class "UnivarMixingDistribution", or if argument withSimplify is TRUE and the resulting object would have one mixing component with probability (almost) 1, UnivarMixingDistribution will return this component.

concept

  • multivariate distribution
  • S4 distribution class
  • generating function

See Also

UnivarMixingDistribution-class, simplifyD

Aliases
  • UnivarMixingDistribution
Examples
mylist <- UnivarMixingDistribution(Binom(3,.3), Dirac(2), Norm(), 
          mixCoeff=c(1/4,1/5,11/20))
Documentation reproduced from package distr, version 2.3.1, License: LGPL-3

Community examples

Looks like there are no examples yet.