LearnBayes: Functions for Learning Bayesian Inference

LearnBayes contains a collection of functions helpful in learning the basic tenets of Bayesian statistical inference. It contains functions for summarizing basic one and two parameter posterior distributions and predictive distributions. It contains MCMC algorithms for summarizing posterior distributions defined by the user. It also contains functions for regression models, hierarchical models, Bayesian tests, and illustrations of Gibbs sampling.

AuthorJim Albert
Date of publication2014-05-29 17:33:08
MaintainerJim Albert <albert@bgsu.edu>
LicenseGPL (>= 2)
Version2.15

View on CRAN

Man pages

achievement: School achievement data

baseball.1964: Team records in the 1964 National League baseball season

bayes.influence: Observation sensitivity analysis in beta-binomial model

bayes.model.selection: Bayesian regression model selection using G priors

bayes.probit: Simulates from a probit binary response regression model...

bayesresiduals: Computation of posterior residual outlying probabilities for...

bermuda.grass: Bermuda grass experiment data

betabinexch: Log posterior of logit mean and log precision for...

betabinexch0: Log posterior of mean and precision for Binomial/beta...

beta.select: Selection of Beta Prior Given Knowledge of Two Quantiles

bfexch: Logarithm of integral of Bayes factor for testing homogeneity...

bfindep: Bayes factor against independence assuming alternatives close...

binomial.beta.mix: Computes the posterior for binomial sampling and a mixture of...

birdextinct: Bird measurements from British islands

birthweight: Birthweight regression study

blinreg: Simulation from Bayesian linear regression model

blinregexpected: Simulates values of expected response for linear regression...

blinregpred: Simulates values of predicted response for linear regression...

bprobit.probs: Simulates fitted probabilities for a probit regression model

bradley.terry.post: Log posterior of a Bradley Terry random effects model

breastcancer: Survival experience of women with breast cancer under...

calculus.grades: Calculus grades dataset

cancermortality: Cancer mortality data

careertraj.setup: Setup for Career Trajectory Application

cauchyerrorpost: Log posterior of median and log scale parameters for Cauchy...

chemotherapy: Chemotherapy treatment effects on ovarian cancer

ctable: Bayes factor against independence using uniform priors

darwin: Darwin's data on plants

discint: Highest probability interval for a discrete distribution

discrete.bayes: Posterior distribution with discrete priors

discrete.bayes.2: Posterior distribution of two parameters with discrete priors

dmnorm: The probability density function for the multivariate normal...

dmt: Probability density function for multivariate t

donner: Donner survival study

election: Florida election data

election.2008: Poll data from 2008 U.S. Presidential Election

footballscores: Game outcomes and point spreads for American football

gibbs: Metropolis within Gibbs sampling algorithm of a posterior...

groupeddatapost: Log posterior of normal parameters when data is in grouped...

hearttransplants: Heart transplant mortality data

hiergibbs: Gibbs sampling for a hierarchical regression model

histprior: Density function of a histogram distribution

howardprior: Logarithm of Howard's dependent prior for two proportions

impsampling: Importance sampling using a t proposal density

indepmetrop: Independence Metropolis independence chain of a posterior...

iowagpa: Admissions data for an university

jeter2004: Hitting data for Derek Jeter

laplace: Summarization of a posterior density by the Laplace method

lbinorm: Logarithm of bivariate normal density

logctablepost: Log posterior of difference and sum of logits in a 2x2 table

logisticpost: Log posterior for a binary response model with a logistic...

logpoissgamma: Log posterior with Poisson sampling and gamma prior

logpoissnormal: Log posterior with Poisson sampling and normal prior

marathontimes: Marathon running times

mnormt.onesided: Bayesian test of one-sided hypothesis about a normal mean

mnormt.twosided: Bayesian test of a two-sided hypothesis about a normal mean

mycontour: Contour plot of a bivariate density function

normal.normal.mix: Computes the posterior for normal sampling and a mixture of...

normal.select: Selection of Normal Prior Given Knowledge of Two Quantiles

normchi2post: Log posterior density for mean and variance for normal...

normnormexch: Log posterior of mean and log standard deviation for...

normpostpred: Posterior predictive simulation from Bayesian normal sampling...

normpostsim: Simulation from Bayesian normal sampling model

ordergibbs: Gibbs sampling for a hierarchical regression model

pbetap: Predictive distribution for a binomial sample with a beta...

pbetat: Bayesian test of a proportion

pdisc: Posterior distribution for a proportion with discrete priors

pdiscp: Predictive distribution for a binomial sample with a discrete...

poissgamexch: Log posterior of Poisson/gamma exchangeable model

poisson.gamma.mix: Computes the posterior for Poisson sampling and a mixture of...

predplot: Plot of predictive distribution for binomial sampling with a...

prior.two.parameters: Construct discrete uniform prior for two parameters

puffin: Bird measurements from British islands

rdirichlet: Random draws from a Dirichlet distribution

reg.gprior.post: Computes the log posterior of a normal regression model with...

regroup: Collapses a matrix by summing over rows

rejectsampling: Rejecting sampling using a t proposal density

rigamma: Random number generation for inverse gamma distribution

rmnorm: Random number generation for multivariate normal

rmt: Random number generation for multivariate t

robustt: Gibbs sampling for a robust regression model

rtruncated: Simulates from a truncated probability distribution

rwmetrop: Random walk Metropolis algorithm of a posterior distribution

schmidt: Batting data for Mike Schmidt

simcontour: Simulated draws from a bivariate density function on a grid

sir: Sampling importance resampling

sluggerdata: Hitting statistics for ten great baseball players

soccergoals: Goals scored by professional soccer team

stanfordheart: Data from Stanford Heart Transplanation Program

strikeout: Baseball strikeout data

studentdata: Student dataset

transplantpost: Log posterior of a Pareto model for survival data

triplot: Plot of prior, likelihood and posterior for a proportion

weibullregpost: Log posterior of a Weibull proportional odds model for...

Functions

achievement Man page
baseball.1964 Man page
bayes.influence Man page
bayes.model.selection Man page
bayes.probit Man page
bayesresiduals Man page
bermuda.grass Man page
betabinexch Man page
betabinexch0 Man page
beta.select Man page
bfexch Man page
bfindep Man page
binomial.beta.mix Man page
birdextinct Man page
birthweight Man page
blinreg Man page
blinregexpected Man page
blinregpred Man page
bprobit.probs Man page
bradley.terry.post Man page
breastcancer Man page
calculus.grades Man page
cancermortality Man page
careertraj.setup Man page
cauchyerrorpost Man page
chemotherapy Man page
ctable Man page
darwin Man page
discint Man page
discrete.bayes Man page
discrete.bayes.2 Man page
dmnorm Man page
dmt Man page
donner Man page
election Man page
election.2008 Man page
footballscores Man page
gibbs Man page
groupeddatapost Man page
hearttransplants Man page
hiergibbs Man page
histprior Man page
howardprior Man page
impsampling Man page
indepmetrop Man page
iowagpa Man page
jeter2004 Man page
laplace Man page
lbinorm Man page
logctablepost Man page
logisticpost Man page
logpoissgamma Man page
logpoissnormal Man page
marathontimes Man page
mnormt.onesided Man page
mnormt.twosided Man page
mycontour Man page
normal.normal.mix Man page
normal.select Man page
normchi2post Man page
normnormexch Man page
normpostpred Man page
normpostsim Man page
ordergibbs Man page
pbetap Man page
pbetat Man page
pdisc Man page
pdiscp Man page
plot.bayes Man page
plot.bayes2 Man page
poissgamexch Man page
poisson.gamma.mix Man page
predplot Man page
print.bayes Man page
prior.two.parameters Man page
puffin Man page
rdirichlet Man page
reg.gprior.post Man page
regroup Man page
rejectsampling Man page
rigamma Man page
rmnorm Man page
rmt Man page
robustt Man page
rtruncated Man page
rwmetrop Man page
schmidt Man page
simcontour Man page
sir Man page
sluggerdata Man page
soccergoals Man page
stanfordheart Man page
strikeout Man page
studentdata Man page
summary.bayes Man page
transplantpost Man page
triplot Man page
weibullregpost Man page

Files

LearnBayes
LearnBayes/inst
LearnBayes/inst/doc
LearnBayes/inst/doc/BinomialInference.R
LearnBayes/inst/doc/DiscreteBayes.pdf
LearnBayes/inst/doc/MultilevelModeling.R
LearnBayes/inst/doc/BinomialInference.Rnw
LearnBayes/inst/doc/DiscreteBayes.Rnw
LearnBayes/inst/doc/MultilevelModeling.Rnw
LearnBayes/inst/doc/MCMCintro.R
LearnBayes/inst/doc/BayesFactors.Rnw
LearnBayes/inst/doc/BayesFactors.pdf
LearnBayes/inst/doc/MultilevelModeling.pdf
LearnBayes/inst/doc/BayesFactors.R
LearnBayes/inst/doc/MCMCintro.Rnw
LearnBayes/inst/doc/BinomialInference.pdf
LearnBayes/inst/doc/MCMCintro.pdf
LearnBayes/inst/doc/DiscreteBayes.R
LearnBayes/NAMESPACE
LearnBayes/demo
LearnBayes/demo/Chapter.6.10.R
LearnBayes/demo/Chapter.8.8.R
LearnBayes/demo/Chapter.4.4.R
LearnBayes/demo/Chapter.6.2.R
LearnBayes/demo/Chapter.6.7.R
LearnBayes/demo/Chapter.5.6.R
LearnBayes/demo/Chapter.3.6.R
LearnBayes/demo/Chapter.3.3.R
LearnBayes/demo/Chapter.9.4.R
LearnBayes/demo/Chapter.6.8.R
LearnBayes/demo/Chapter.4.3.R
LearnBayes/demo/Chapter.8.3.R
LearnBayes/demo/Chapter.4.5.R
LearnBayes/demo/Chapter.8.4.R
LearnBayes/demo/Chapter.1.3.R
LearnBayes/demo/Chapter.8.7.R
LearnBayes/demo/Chapter.3.4.R
LearnBayes/demo/Chapter.2.3.R
LearnBayes/demo/Chapter.9.3.R
LearnBayes/demo/Chapter.7.3.R
LearnBayes/demo/Chapter.2.6.R
LearnBayes/demo/Chapter.3.2.R
LearnBayes/demo/Chapter.5.4.R
LearnBayes/demo/Chapter.7.7.R
LearnBayes/demo/Chapter.7.10.R
LearnBayes/demo/Chapter.10.4.R
LearnBayes/demo/Chapter.3.5.R
LearnBayes/demo/Chapter.7.2.R
LearnBayes/demo/Chapter.7.5.R
LearnBayes/demo/00Index
LearnBayes/demo/Chapter.10.2.R
LearnBayes/demo/Chapter.6.9.R
LearnBayes/demo/Chapter.5.7.R
LearnBayes/demo/Chapter.5.10.R
LearnBayes/demo/Chapter.1.2.R
LearnBayes/demo/Chapter.7.8.R
LearnBayes/demo/Chapter.7.4.R
LearnBayes/demo/Chapter.8.6.R
LearnBayes/demo/Chapter.9.2.R
LearnBayes/demo/Chapter.4.2.R
LearnBayes/demo/Chapter.7.9.R
LearnBayes/demo/Chapter.10.3.R
LearnBayes/demo/Chapter.2.5.R
LearnBayes/demo/Chapter.2.4.R
LearnBayes/demo/Chapter.5.9.R
LearnBayes/demo/Chapter.5.8.R
LearnBayes/data
LearnBayes/data/marathontimes.txt.gz
LearnBayes/data/achievement.txt.gz
LearnBayes/data/bermuda.grass.txt.gz
LearnBayes/data/iowagpa.txt.gz
LearnBayes/data/soccergoals.txt.gz
LearnBayes/data/hearttransplants.txt.gz
LearnBayes/data/baseball.1964.txt.gz
LearnBayes/data/election.txt.gz
LearnBayes/data/stanfordheart.txt.gz
LearnBayes/data/darwin.txt.gz
LearnBayes/data/election.2008.txt.gz
LearnBayes/data/breastcancer.txt.gz
LearnBayes/data/sluggerdata.txt.gz
LearnBayes/data/footballscores.txt.gz
LearnBayes/data/schmidt.txt.gz
LearnBayes/data/strikeout.txt.gz
LearnBayes/data/jeter2004.txt.gz
LearnBayes/data/calculus.grades.txt.gz
LearnBayes/data/studentdata.txt.gz
LearnBayes/data/cancermortality.txt.gz
LearnBayes/data/birthweight.txt.gz
LearnBayes/data/birdextinct.txt.gz
LearnBayes/data/chemotherapy.txt.gz
LearnBayes/data/puffin.txt.gz
LearnBayes/data/donner.txt.gz
LearnBayes/R
LearnBayes/R/howardprior.R LearnBayes/R/bayes.probit.R LearnBayes/R/blinreg.R LearnBayes/R/histprior.R LearnBayes/R/indepmetrop.R LearnBayes/R/mycontour.R LearnBayes/R/dmt.R LearnBayes/R/bradley.terry.post.R LearnBayes/R/pdiscp.R LearnBayes/R/cauchyerrorpost.R LearnBayes/R/betabinexch0.R LearnBayes/R/normnormexch.R LearnBayes/R/bayesresiduals.R LearnBayes/R/discrete.bayes.R LearnBayes/R/simcontour.R LearnBayes/R/ctable.R LearnBayes/R/bprobit.probs.R LearnBayes/R/ordergibbs.R LearnBayes/R/transplantpost.R LearnBayes/R/rtruncated.R LearnBayes/R/careertraj.setup.R LearnBayes/R/robustt.R LearnBayes/R/sir.R LearnBayes/R/weibullregpost.R LearnBayes/R/blinregpred.R LearnBayes/R/rmnorm.R LearnBayes/R/bayes.model.selection.R LearnBayes/R/normpostsim.R LearnBayes/R/hiergibbs.R LearnBayes/R/normal.select.R LearnBayes/R/mnormt.onesided.R LearnBayes/R/plot.bayes.R LearnBayes/R/logisticpost.R LearnBayes/R/gibbs.R LearnBayes/R/binomial.beta.mix.R LearnBayes/R/rdirichlet.R LearnBayes/R/discint.R LearnBayes/R/poissgamexch.R LearnBayes/R/normal.normal.mix.R LearnBayes/R/laplace.R LearnBayes/R/prior.two.parameters.R LearnBayes/R/rwmetrop.R LearnBayes/R/reg.gprior.post.R LearnBayes/R/pbetap.R LearnBayes/R/logctablepost.R LearnBayes/R/discrete.bayes.2.R LearnBayes/R/bfexch.R LearnBayes/R/print.bayes.R LearnBayes/R/lbinorm.R LearnBayes/R/rmt.R LearnBayes/R/bayes.influence.R LearnBayes/R/groupeddatapost.R LearnBayes/R/logpoissgamma.R LearnBayes/R/poisson.gamma.mix.R LearnBayes/R/dmnorm.R LearnBayes/R/mnormt.twosided.R LearnBayes/R/bfindep.R LearnBayes/R/normpostpred.R LearnBayes/R/pdisc.R LearnBayes/R/rejectsampling.R LearnBayes/R/plot.bayes2.R LearnBayes/R/summary.bayes.R LearnBayes/R/rigamma.R LearnBayes/R/pbetat.R LearnBayes/R/blinregexpected.R LearnBayes/R/triplot.R LearnBayes/R/normchi2post.R LearnBayes/R/logpoissnormal.R LearnBayes/R/beta.select.R LearnBayes/R/betabinexch.R LearnBayes/R/predplot.R LearnBayes/R/regroup.R LearnBayes/R/impsampling.R
LearnBayes/vignettes
LearnBayes/vignettes/BinomialInference.Rnw
LearnBayes/vignettes/DiscreteBayes.Rnw
LearnBayes/vignettes/MultilevelModeling.Rnw
LearnBayes/vignettes/BayesFactors.Rnw
LearnBayes/vignettes/MCMCintro.Rnw
LearnBayes/MD5
LearnBayes/build
LearnBayes/build/vignette.rds
LearnBayes/DESCRIPTION
LearnBayes/man
LearnBayes/man/prior.two.parameters.Rd LearnBayes/man/pbetat.Rd LearnBayes/man/logpoissnormal.Rd LearnBayes/man/blinreg.Rd LearnBayes/man/normnormexch.Rd LearnBayes/man/cauchyerrorpost.Rd LearnBayes/man/impsampling.Rd LearnBayes/man/predplot.Rd LearnBayes/man/pbetap.Rd LearnBayes/man/normal.normal.mix.Rd LearnBayes/man/schmidt.Rd LearnBayes/man/achievement.Rd LearnBayes/man/discint.Rd LearnBayes/man/studentdata.Rd LearnBayes/man/blinregexpected.Rd LearnBayes/man/bayesresiduals.Rd LearnBayes/man/footballscores.Rd LearnBayes/man/baseball.1964.Rd LearnBayes/man/rigamma.Rd LearnBayes/man/discrete.bayes.Rd LearnBayes/man/logctablepost.Rd LearnBayes/man/discrete.bayes.2.Rd LearnBayes/man/dmt.Rd LearnBayes/man/rdirichlet.Rd LearnBayes/man/reg.gprior.post.Rd LearnBayes/man/bprobit.probs.Rd LearnBayes/man/rmnorm.Rd LearnBayes/man/betabinexch.Rd LearnBayes/man/donner.Rd LearnBayes/man/logisticpost.Rd LearnBayes/man/poissgamexch.Rd LearnBayes/man/hearttransplants.Rd LearnBayes/man/soccergoals.Rd LearnBayes/man/beta.select.Rd LearnBayes/man/bermuda.grass.Rd LearnBayes/man/cancermortality.Rd LearnBayes/man/bayes.probit.Rd LearnBayes/man/gibbs.Rd LearnBayes/man/strikeout.Rd LearnBayes/man/birthweight.Rd LearnBayes/man/dmnorm.Rd LearnBayes/man/sir.Rd LearnBayes/man/blinregpred.Rd LearnBayes/man/normpostsim.Rd LearnBayes/man/howardprior.Rd LearnBayes/man/ordergibbs.Rd LearnBayes/man/stanfordheart.Rd LearnBayes/man/lbinorm.Rd LearnBayes/man/betabinexch0.Rd LearnBayes/man/laplace.Rd LearnBayes/man/logpoissgamma.Rd LearnBayes/man/normal.select.Rd LearnBayes/man/election.2008.Rd LearnBayes/man/mnormt.onesided.Rd LearnBayes/man/rmt.Rd LearnBayes/man/robustt.Rd LearnBayes/man/normchi2post.Rd LearnBayes/man/rejectsampling.Rd LearnBayes/man/poisson.gamma.mix.Rd LearnBayes/man/binomial.beta.mix.Rd LearnBayes/man/careertraj.setup.Rd LearnBayes/man/regroup.Rd LearnBayes/man/birdextinct.Rd LearnBayes/man/bayes.model.selection.Rd LearnBayes/man/marathontimes.Rd LearnBayes/man/jeter2004.Rd LearnBayes/man/weibullregpost.Rd LearnBayes/man/pdisc.Rd LearnBayes/man/triplot.Rd LearnBayes/man/bfindep.Rd LearnBayes/man/bayes.influence.Rd LearnBayes/man/breastcancer.Rd LearnBayes/man/groupeddatapost.Rd LearnBayes/man/mnormt.twosided.Rd LearnBayes/man/hiergibbs.Rd LearnBayes/man/iowagpa.Rd LearnBayes/man/chemotherapy.Rd LearnBayes/man/mycontour.Rd LearnBayes/man/rwmetrop.Rd LearnBayes/man/puffin.Rd LearnBayes/man/calculus.grades.Rd LearnBayes/man/histprior.Rd LearnBayes/man/bfexch.Rd LearnBayes/man/election.Rd LearnBayes/man/simcontour.Rd LearnBayes/man/indepmetrop.Rd LearnBayes/man/ctable.Rd LearnBayes/man/pdiscp.Rd LearnBayes/man/sluggerdata.Rd LearnBayes/man/rtruncated.Rd LearnBayes/man/normpostpred.Rd LearnBayes/man/bradley.terry.post.Rd LearnBayes/man/transplantpost.Rd LearnBayes/man/darwin.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.