mcmc.erlang: Does a metropolis hastings for the Erlang distribution

Description Usage Arguments Value

Description

Does a metropolis hastings for the Erlang distribution

Usage

1
2
  mcmc.erlang(dat, prior.par1, prior.par2, init.pars,
    verbose, burnin, n.samples, sds = c(1, 1))

Arguments

dat

the data to fit

prior.par1

mean of priors. A negative binomial (for shape) and a normal for log(scale)

prior.par2

dispersion parameters for priors, dispersion for negative binomial, log scale sd for normal

init.pars

the starting parameters on the reporting scale

verbose

how often to print an update

burnin

how many burnin iterations to do

n.samples

the number of samples to keep and report back

sds

the standard deviations for the proposal distribution

Value

a matrix of n.samples X 2 parameters, on the estimation scale



Search within the coarseDataTools 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.