Package: LearnBayes 2.17

LearnBayes: Learning Bayesian Inference

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.

Authors:Jim Albert

LearnBayes_2.17.tar.gz
LearnBayes_2.17.zip(r-4.5)LearnBayes_2.17.zip(r-4.4)LearnBayes_2.17.zip(r-4.3)
LearnBayes_2.17.tgz(r-4.4-any)LearnBayes_2.17.tgz(r-4.3-any)
LearnBayes_2.17.tar.gz(r-4.5-noble)LearnBayes_2.17.tar.gz(r-4.4-noble)
LearnBayes_2.17.tgz(r-4.4-emscripten)LearnBayes_2.17.tgz(r-4.3-emscripten)
LearnBayes.pdf |LearnBayes.html
LearnBayes/json (API)

# Install 'LearnBayes' in R:
install.packages('LearnBayes', repos = c('https://bayesball.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/bayesball/learnbayes/issues

Datasets:

On CRAN:

11.22 score 37 stars 26 packages 718 scripts 6.4k downloads 5 mentions 76 exports 2 dependencies

Last updated 7 years agofrom:f7722076d0. Checks:ERROR: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesFAILNov 11 2024
R-4.5-winWARNINGNov 11 2024
R-4.5-linuxWARNINGNov 11 2024
R-4.4-winWARNINGNov 11 2024
R-4.4-macWARNINGNov 11 2024
R-4.3-winWARNINGNov 11 2024
R-4.3-macWARNINGNov 11 2024

Exports:bayes.influencebayes.model.selectionbayes.probitbayesresidualsbeta.selectbetabinexchbetabinexch0bfexchbfindepbinomial.beta.mixblinregblinregexpectedblinregpredbprobit.probsbradley.terry.postcareertraj.setupcauchyerrorpostctablediscintdiscrete.bayesdiscrete.bayes.2dmnormdmtgibbsgroupeddataposthiergibbshistpriorhowardpriorimpsamplingindepmetroplaplacelbinormlogctablepostlogisticpostlogpoissgammalogpoissnormalmnormt.onesidedmnormt.twosidedmycontournormal.normal.mixnormal.selectnormchi2postnormnormexchnormpostprednormpostsimordergibbspbetappbetatpdiscpdiscpplot.bayesplot.bayes2plot.posteriorpoissgamexchpoisson.gamma.mixpredplotprint.bayesprior.two.parametersrdirichletreg.gprior.postregrouprejectsamplingrigammarmnormrmtrobusttrtruncatedrwmetropsimcontoursimulate.posteriorsirsummary.bayessummary.posteriortransplantposttriplotweibullregpost

Dependencies:codalattice

Introduction to Bayes Factors

Rendered fromBayesFactors.Rnwusingutils::Sweaveon Nov 11 2024.

Last update: 2015-02-16
Started: 2015-02-16

Introduction to Bayes using Discrete Priors

Rendered fromDiscreteBayes.Rnwusingutils::Sweaveon Nov 11 2024.

Last update: 2015-02-16
Started: 2015-02-16

Introduction to Markov Chain Monte Carlo

Rendered fromMCMCintro.Rnwusingutils::Sweaveon Nov 11 2024.

Last update: 2015-02-16
Started: 2015-02-16

Introduction to Multilevel Modeling

Rendered fromMultilevelModeling.Rnwusingutils::Sweaveon Nov 11 2024.

Last update: 2015-02-16
Started: 2015-02-16

Learning About a Binomial Proportion

Rendered fromBinomialInference.Rnwusingutils::Sweaveon Nov 11 2024.

Last update: 2015-02-16
Started: 2015-02-16

Readme and manuals

Help Manual

Help pageTopics
School achievement dataachievement
Team records in the 1964 National League baseball seasonbaseball.1964
Observation sensitivity analysis in beta-binomial modelbayes.influence
Bayesian regression model selection using G priorsbayes.model.selection
Simulates from a probit binary response regression model using data augmentation and Gibbs samplingbayes.probit
Computation of posterior residual outlying probabilities for a linear regression modelbayesresiduals
Bermuda grass experiment databermuda.grass
Selection of Beta Prior Given Knowledge of Two Quantilesbeta.select
Log posterior of logit mean and log precision for Binomial/beta exchangeable modelbetabinexch
Log posterior of mean and precision for Binomial/beta exchangeable modelbetabinexch0
Logarithm of integral of Bayes factor for testing homogeneity of proportionsbfexch
Bayes factor against independence assuming alternatives close to independencebfindep
Computes the posterior for binomial sampling and a mixture of betas priorbinomial.beta.mix
Bird measurements from British islandsbirdextinct
Birthweight regression studybirthweight
Simulation from Bayesian linear regression modelblinreg
Simulates values of expected response for linear regression modelblinregexpected
Simulates values of predicted response for linear regression modelblinregpred
Simulates fitted probabilities for a probit regression modelbprobit.probs
Log posterior of a Bradley Terry random effects modelbradley.terry.post
Survival experience of women with breast cancer under treatmentbreastcancer
Calculus grades datasetcalculus.grades
Cancer mortality datacancermortality
Setup for Career Trajectory Applicationcareertraj.setup
Log posterior of median and log scale parameters for Cauchy samplingcauchyerrorpost
Chemotherapy treatment effects on ovarian cancerchemotherapy
Bayes factor against independence using uniform priorsctable
Darwin's data on plantsdarwin
Highest probability interval for a discrete distributiondiscint
Posterior distribution with discrete priorsdiscrete.bayes plot.bayes print.bayes summary.bayes
Posterior distribution of two parameters with discrete priorsdiscrete.bayes.2 plot.bayes2
The probability density function for the multivariate normal (Gaussian) probability distributiondmnorm
Probability density function for multivariate tdmt
Donner survival studydonner
Florida election dataelection
Poll data from 2008 U.S. Presidential Electionelection.2008
Game outcomes and point spreads for American footballfootballscores
Metropolis within Gibbs sampling algorithm of a posterior distributiongibbs
Log posterior of normal parameters when data is in grouped formgroupeddatapost
Heart transplant mortality datahearttransplants
Gibbs sampling for a hierarchical regression modelhiergibbs
Density function of a histogram distributionhistprior
Logarithm of Howard's dependent prior for two proportionshowardprior
Importance sampling using a t proposal densityimpsampling
Independence Metropolis independence chain of a posterior distributionindepmetrop
Admissions data for an universityiowagpa
Hitting data for Derek Jeterjeter2004
Summarization of a posterior density by the Laplace methodlaplace
Logarithm of bivariate normal densitylbinorm
Log posterior of difference and sum of logits in a 2x2 tablelogctablepost
Log posterior for a binary response model with a logistic link and a uniform priorlogisticpost
Log posterior with Poisson sampling and gamma priorlogpoissgamma
Log posterior with Poisson sampling and normal priorlogpoissnormal
Marathon running timesmarathontimes
Bayesian test of one-sided hypothesis about a normal meanmnormt.onesided
Bayesian test of a two-sided hypothesis about a normal meanmnormt.twosided
Contour plot of a bivariate density functionmycontour
Computes the posterior for normal sampling and a mixture of normals priornormal.normal.mix
Selection of Normal Prior Given Knowledge of Two Quantilesnormal.select
Log posterior density for mean and variance for normal samplingnormchi2post
Log posterior of mean and log standard deviation for Normal/Normal exchangeable modelnormnormexch
Posterior predictive simulation from Bayesian normal sampling modelnormpostpred
Simulation from Bayesian normal sampling modelnormpostsim
Gibbs sampling for a hierarchical regression modelordergibbs
Predictive distribution for a binomial sample with a beta priorpbetap
Bayesian test of a proportionpbetat
Posterior distribution for a proportion with discrete priorspdisc
Predictive distribution for a binomial sample with a discrete priorpdiscp
Plot of a posterior objectplot.posterior
Log posterior of Poisson/gamma exchangeable modelpoissgamexch
Computes the posterior for Poisson sampling and a mixture of gammas priorpoisson.gamma.mix
Plot of predictive distribution for binomial sampling with a beta priorpredplot
Construct discrete uniform prior for two parametersprior.two.parameters
Bird measurements from British islandspuffin
Random draws from a Dirichlet distributionrdirichlet
Computes the log posterior of a normal regression model with a g prior.reg.gprior.post
Collapses a matrix by summing over rowsregroup
Rejecting sampling using a t proposal densityrejectsampling
Random number generation for inverse gamma distributionrigamma
Random number generation for multivariate normalrmnorm
Random number generation for multivariate trmt
Gibbs sampling for a robust regression modelrobustt
Simulates from a truncated probability distributionrtruncated
Random walk Metropolis algorithm of a posterior distributionrwmetrop
Batting data for Mike Schmidtschmidt
Simulated draws from a bivariate density function on a gridsimcontour
Simulate values from a posterior objectsimulate.posterior
Sampling importance resamplingsir
Hitting statistics for ten great baseball playerssluggerdata
Goals scored by professional soccer teamsoccergoals
Data from Stanford Heart Transplanation Programstanfordheart
Baseball strikeout datastrikeout
Student datasetstudentdata
Summary values from a posterior objectsummary.posterior
Log posterior of a Pareto model for survival datatransplantpost
Plot of prior, likelihood and posterior for a proportiontriplot
Log posterior of a Weibull proportional odds model for survival dataweibullregpost