posterior: Calculates the posterior distribution for Metropolis-MCMC

Description Usage Arguments Value Author(s) References Examples

View source: R/weibull4.r

Description

This is an internal function of the weibull4 package

Usage

1
posterior(x, y, param, modes)

Arguments

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

Value

Vector containning the posterior distribution for Metropolis-MCMC

Author(s)

Florian Hartig - Theoretical Ecology

References

https://theoreticalecology.wordpress.com/2010/09/17/metropolis-hastings-mcmc-in-r/

Examples

1
2
3
4
function (param)
{
    return(likelihood(param) + prior(param))
  }

weibull4 documentation built on Jan. 26, 2021, 1:06 a.m.

Related to posterior in weibull4...