unifprior: A uniform prior on the model parameters

Description Usage Arguments Value See Also

View source: R/RcppExports.R

Description

Compute a uniform prior on alpha, beta, gamma, and epsilon

Usage

1
unifprior(alpha, beta, gamma, epsilon, esteps, UB = 1000, LB = 0.01)

Arguments

alpha

A number compared to the upper bound UB and the lower bound LB.

beta

A number compared to the upper bound UB and the lower bound LB.

gamma

A number compared to the upper bound UB and the lower bound LB.

epsilon

A number compared to the upper bound UB and the lower bound LB.

esteps

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

UB

A number used as an upper bound on the model parameters.

LB

A number used as a lower bound on the model parameters.

Value

If all the model parameters are between the lower bound and the upper bound, then unifprior returns 1. Otherwise, unifprior returns 0.

See Also

dlogis dgamma household.transmission prior


SIRmcmc documentation built on Nov. 23, 2021, 9:09 a.m.

Related to unifprior in SIRmcmc...