File: mcmc.erlang.Rd

package info (click to toggle)
r-cran-coarsedatatools 0.6-6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 328 kB
  • sloc: makefile: 2
file content (40 lines) | stat: -rw-r--r-- 1,004 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dic.fit.mcmc.R
\name{mcmc.erlang}
\alias{mcmc.erlang}
\title{Does a metropolis hastings for the Erlang distribution}
\usage{
mcmc.erlang(
  dat,
  prior.par1,
  prior.par2,
  init.pars,
  verbose,
  burnin,
  n.samples,
  sds = c(1, 1)
)
}
\arguments{
\item{dat}{the data to fit}

\item{prior.par1}{mean of priors. A negative binomial (for shape) and a normal for log(scale)}

\item{prior.par2}{dispersion parameters for priors, dispersion for negative binomial, log scale sd for normal}

\item{init.pars}{the starting parameters on the reporting scale}

\item{verbose}{how often to print an update}

\item{burnin}{how many burnin iterations to do}

\item{n.samples}{the number of samples to keep and report back}

\item{sds}{the standard deviations for the proposal distribution}
}
\value{
a matrix of n.samples X 2 parameters, on the estimation scale
}
\description{
Does a metropolis hastings for the Erlang distribution
}