powered by
This is an internal function of the weibull4 package
posterior(x, y, param, modes)
Vector with the x values
Vector with the y values
Vector containning shape, scale, location, area and SD parameters
Sets unimodal (modes=1) or bimodal (modes=2) Weibull's distribution
Vector containning the posterior distribution for Metropolis-MCMC
https://theoreticalecology.wordpress.com/2010/09/17/metropolis-hastings-mcmc-in-r/
# NOT RUN { function (param) { return(likelihood(param) + prior(param)) } # }
Run the code above in your browser using DataLab