Learn R Programming

eggCounts (version 0.4-1)

setDefaults1: Set default values for the one-sample (ZI)PoGa model formulation

Description

Set default values for the one-sample (ZI)PoGa model formulation

Usage

setDefaults1(priors.mu, priors.phi, priors.psi)

Arguments

priors.mu
named list with hyperprior specifications for $\mu$, containing elements hyperpars and proposalDist
priors.phi
named list with hyperprior specifications for the overdispersion parameter $\phi$, containing elements hyperpars, proposalDist (unif or gamma) and in the case of a uniform proposal also a tuning parameter v
priors.psi
named list with hyperprior specifications for the prevalence $\psi$, containing elements hyperpars

Value

  • A named list with prior specifications for $\mu$, $\phi$ and $\psi$. Default prior distributions are:
  • mugamma[1, 0.001]
  • phigamma[1, 0.1]
  • psibeta[1, 1]
  • Default proposal distributions for $\mu$ and $\phi$ are:
  • muapproximating inverse gamma, gamma or lognormal distribution
  • phiunif[max(current.value - v,0), current.value + v], with $v=0.5$