logpoissgamma: Log posterior with Poisson sampling and gamma prior

Description Usage Arguments Value Author(s) Examples

Description

Computes the logarithm of the posterior density of a Poisson log mean with a gamma prior

Usage

1
logpoissgamma(theta,datapar)

Arguments

theta

vector of values of the log mean parameter

datapar

list with components data, vector of observations, and par, vector of parameters of the gamma prior

Value

vector of values of the log posterior for all values in theta

Author(s)

Jim Albert

Examples

1
2
3
4
5
data=c(2,4,3,6,1,0,4,3,10,2)
par=c(1,1)
datapar=list(data=data,par=par)
theta=c(-1,0,1,2)
logpoissgamma(theta,datapar)


Search within the LearnBayes package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? 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.