# PriorAndPosterior: Prior and posterior distributions In brr: Bayesian Inference on the Ratio of Two Poisson Rates

## Description

Generic functions for prior and posterior distributions

## Usage

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19``` ```dprior(model, parameter, ...) pprior(model, parameter, ...) qprior(model, parameter, ...) rprior(model, parameter, ...) sprior(model, parameter, ...) dpost(model, parameter, ...) ppost(model, parameter, ...) qpost(model, parameter, ...) rpost(model, parameter, ...) spost(model, parameter, ...) ```

## Arguments

 `model` an object of class `brr` (see `Brr`) `parameter` a character string among `mu`, `phi`, `lambda`, `x`, `y` `...` the first argument of the function called

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17``` ```model <- Brr(a=2, b=4) dprior(model, "mu", 1:3) # the same: dprior_mu(mu=1:3, a=2, b=4) ## Not run: dprior(model, "lambda", 1:3) ## End(Not run) model <- model(c=4, d=5, S=10, T=10) dprior(model, "lambda", 1:3) model <- model(x=5, y=10) ppost(model, "phi", 1) model <- Brr() ## Not run: ppost(model, "phi", 1) ## End(Not run) model <- model(x=5, y=10, S=3, T=10) ppost(model, "phi", 1) ```

brr documentation built on May 29, 2017, 3:10 p.m.