Description Usage Arguments Details Value Author(s) See Also Examples
This function generates two-component mixture data from a various different mixture distributions.
1 | mixgen(N, dist1, dist2, control)
|
N |
population size. |
dist1, dist2 |
respective distributions of the first and second mixture
components to be simulated from. For Normal, Log-normal, Weibull, Gamma,
Cauchy and Beta distributions, they must be provided as |
control |
a list of parameters for controlling the simulation process.
This includes parameters of the first and second mixture component
distributions and the mixture proportion π which should be provided
in the order mentioned, i.e., parameters for the first component come
first, those of the second component come after and then the value of the
mixing proportion. All values should be provided in a list of numerics.
Note parameters for each component distribution should be added in the
order as required in their generator functions, see
|
It generates a two-component mixture dataset from a density function
π f_1 + (1 - π) f_2,
where f_1 and f_2 are the first and the second mixture component distributions respectively.
An object of class data.frame
containing the following
information:
z |
mixture data |
label |
component indicator |
Lida Fallah, John Hinde
Maintainer: Lida Fallah <l.fallah22@gmail.com>
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.