Description Usage Arguments Value See Also Examples
Function constructing objects of class Mix
that represent finite mixtures of any univariate distribution. Additionally methods for printing and plotting are provided.
1 2 3 4 5 6 |
dist |
character string providing the (abbreviated) name of the component distribution, such that the function |
discrete |
logical flag, should be set to TRUE if the mixture distribution is discrete and to FALSE if continuous. |
w |
numeric vector of length p, specifying the mixture weights w[i] of the components, i = 1,…,p. If the weights do not add up to 1, they will be scaled accordingly. Equal weights for all components are used by default. |
theta.list |
named list specifying the component parameters. The names of the list elements have to match the names of the formal arguments of the functions |
name |
optional name tag of the result (used for printing and plotting). |
... |
|
x |
|
An object of class Mix
(implemented as a matrix) with the following attributes:
dim |
dimensions of the matrix. |
dimnames |
a |
name |
optional name tag for the result passed on to printing and plotting methods. |
dist |
character string giving the abbreviated name of the component distribution, such that the function |
discrete |
logical flag indicating whether the mixture distribution is discrete. |
theta.list |
named list specifying component parameters. |
dMix
for the density, rMix
for random numbers (and construction of an rMix
object) and plot.Mix
for the plot method.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.