Computes pdf of the mixture model.

1 |

`x` |
scalar or vector of values to compute the pdf. |

`phi` |
the value of |

`spec1` |
a character string specifying the first parent distribution (for example, "lnorm" if the parent distribution corresponds to the lognormal). |

`arg1` |
list of arguments/parameters of the first parent distribution. |

`spec2` |
a character string specifying the second parent distribution (for example, "exp" if the parent distribution corresponds to the exponential). |

`arg2` |
list of arguments/parameters of the second parent distribution. |

`log` |
logical; if |

The pdf of mixture model with parameter *phi* has a general form of:

*
f(x) = \frac{1}{1+φ} ≤ft( g_{1}(x) + φ g_{2}(x)\right)
*

where *x* follows the support of parent distributions, *φ* is the weight component and *g_{i}(x)* for *i=1,2* are the pdfs of first and second parent distributions, respectively.

An object of the same length as `x`

, giving the pdf values computed at `x`

.

Shaiful Anuar Abu Bakar

S.A. Abu Bakar, S. Nadarajah, Z.A. ABSL Kamarul Adzhar, I. Mohamed. gendist: An R package for generated probability distribution models, submitted.

Pearson, K. (1894). Contributions to the mathematical theory of evolution. Philosophical Transactions of the Royal Society of London. A, 71-110.

1 2 3 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.