prior {SIRmcmc}R Documentation

Compute prior probability of parameters

Description

Compute the prior probability of alpha, beta, gamma, and epsilon

Usage

prior(alpha, beta, gamma, epsilon, esteps, params = list(alpha =
      list(location = 0, scale = 2), beta = list(shape = 0.01, rate = 0.01),
      gamma = list(shape = 0.01, rate = 0.01),
      epsilon = list(location = 0, scale = 2)))

Arguments

alpha

A number. The logarithm of alpha follows a logistic distribution.

beta

A number. beta follows a gammadistribution.

gamma

A number. gamma follows a gamma distribution.

epsilon

A number. The logarithm of epsilon follows a logistic distribution.

esteps

A number in (0,1). Used for logic as to whether to compute the prior probability of epsilon (1) or not (0).

params

A list of parameters for the prior distributions.

Value

A probability of the model parameters under the prior distributions.

See Also

dlogis dgamma household_transmission


[Package SIRmcmc version 1.1.1 Index]