plot.brr: plot brr In brr: Bayesian Inference on the Ratio of Two Poisson Rates

plot brr

Usage

 1 2 ## S3 method for class 'brr' plot(x, what = "summary", bounds = NULL, ...)

Arguments

 x an object of class brr (see Brr) what "summary" to plot automatically the priors on mu and phi and the posterior on phi, or an expression like dprior(mu) for a specific plot (see examples) bounds for specific plot only, the range over which the function will be plotted; NULL for automatic bounds ... other arguments passed to plot or barplot

Examples

 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 model <- Brr(a=2, b=3) plot(model) plot(model, dprior(mu)) plot(model, dprior(mu), xlim=c(0,4), lwd=3, col="blue") plot(model, pprior(mu)) plot(model, qprior(mu)) model <- model(c=4, d=6, S=10, T=10) plot(model) plot(model, dprior(phi)) plot(model, dprior(x)) model <- model(y=4) plot(model, dprior(x_given_y)) model <- model(x=5, y=5) plot(model, dpost(phi)) model <- model(Snew=10, Tnew=10) plot(model, dpost(x))

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