Description Usage Arguments Value Examples

The (posterior) marginal distribution of X equals the integral of the conditional distribution of X given theta, uniform over [-theta, theta], weighted by the (posterior) distribution of theta, a mixture of Gammas. The function fun_integ explicitly computes the integrand as a function of theta.

1 |

`x` |
a number (vector) specifies the value of the domain argument. |

`pi` |
a vector containing the component probabilities of the Gammas |

`shape, ` |
rate numeric vectors corresponding to shape and rate parameters of Gammas |

The (posterior) marginal distribution of X (over theta) at the input parameter x.

1 2 3 4 5 6 7 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.