Compute (and re-scale, if necessary) the marginal from a set of
points `x`

and values of log-likelihood `logy`

and
log-prior density `logp`

.

1 |

`x` |
Values of the random variable. |

`logy` |
Log-likelihood. |

`logp` |
Log-prior density. |

`usenormal` |
Whether use a Normal distribution for the fitted marginal. |

Fits a marginal at a set of points `x`

from their log-likelihood
and log-prior. The fitted marginal is re-scaled to integrate one if
necessary. If `usenormal=TRUE`

then the fitted marginal is supposed
to be Normal, which is computed using the posterior mean and standard
deviation of `x`

.

A function with the fitted marginal is returned.

Virgilio G<f3>mez-Rubio <virgilio.gomez@uclm.es>

`fitmargBMA`

, `fitmargBMA2`

,`mysplinefun`

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.

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.