Description Usage Arguments Value Author(s) References Examples
This is an internal function of the weibull4 package
1 | posterior(x, y, param, modes)
|
x |
Vector with the x values |
y |
Vector with the y values |
param |
Vector containning shape, scale, location, area and SD parameters |
modes |
Sets unimodal (modes=1) or bimodal (modes=2) Weibull's distribution |
Vector containning the posterior distribution for Metropolis-MCMC
Florian Hartig - Theoretical Ecology
https://theoreticalecology.wordpress.com/2010/09/17/metropolis-hastings-mcmc-in-r/
1 2 3 4 | function (param)
{
return(likelihood(param) + prior(param))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.