# Bayesian Methods and Graphical Model Structures for Statistical Modeling

## Documentation for package ‘bbricks’ version 0.1.1

- DESCRIPTION file.
- User guides, package vignettes and other documentation.

## Help Pages

B C D F G H I L M P R S misc

## -- B --

BasicBayesian | Create objects of type '"BasicBayesian"'.

## -- C --

cancerData | Cancer mortality of 20 cities
CatDirichlet | Create objects of type "CatDirichlet".
CatDP | Create objects of type "CatDP".
CatHDP | Create objects of type "CatHDP".
CatHDP2 | Create objects of type "CatHDP2".

## -- D --

dCategorical | Probability mass function for Categorical distribution
dDir | Density function for Dirichelt distribution
dGaussian | Density function of Gaussian distribution
DP | Create objects of type "DP".
dPosteriorPredictive | Get the density value of the posterior predictive distribution
dPosteriorPredictive.CatDirichlet | Posterior predictive density function of a "CatDirichlet" object
dPosteriorPredictive.CatDP | Posterior predictive density function of a "CatDP" object
dPosteriorPredictive.CatHDP | Posterior predictive density function of a "CatHDP" object
dPosteriorPredictive.CatHDP2 | Posterior predictive density function of a "CatHDP" object
dPosteriorPredictive.DP | Posterior predictive density function of a Dirichlet Process object
dPosteriorPredictive.GaussianNIG | Posterior predictive density function of a "GaussianNIG" object
dPosteriorPredictive.GaussianNIW | Posterior predictive density function of a "GaussianNIW" object
dPosteriorPredictive.HDP | Posterior predictive density function of a "HDP" object
dPosteriorPredictive.HDP2 | Posterior predictive density function of a "HDP2" object
dT | Density function for (multivariate) t distribution

## -- F --

farmadsData | farm ads data

## -- G --

GaussianNIG | Create objects of type "GaussianNIG".
GaussianNIW | Create objects of type "GaussianNIW".

## -- H --

HDP | Create objects of type "HDP".
HDP2 | Create objects of type "HDP2".

## -- I --

inferenceJointGaussian | Inference in joint Gaussian distribution

## -- L --

linearGaussian | Linear Gaussian systems
logsumexp | log sum exp
lrData | Samples from a simple linear model

## -- M --

MAP | Get the Maximum A Posteriori(MAP) estimate of a "BayesianBrick" object
MAP.CatDirichlet | MAP estimate of a "CatDirichlet" object
MAP.CatDP | Maximum A Posteriori(MAP) estimate of a "CatDP" object
MAP.GaussianNIG | MAP estimate of a "GaussianNIG" object
MAP.GaussianNIW | Maximum A Posteriori(MAP) estimate of a "GaussianNIW" object
marginalLikelihood | Get the marginal likelihood of a "BayesianBrick" object
marginalLikelihood.CatDirichlet | Marginal likelihood of a "CatDirichlet" object
marginalLikelihood.CatDP | Marginal likelihood of a "CatDP" object
marginalLikelihood.DP | Marginallikelihood for Dirichlet Process(DP)
marginalLikelihood.GaussianNIG | Marginal likelihood of a "GaussianNIG" object
marginalLikelihood.GaussianNIW | Marginal likelihood of a "GaussianNIW" object
marginalLikelihood.HDP | Marginallikelihood for HDP
marginalLikelihood.HDP2 | Marginallikelihood for HDP2
marginalLikelihood_bySufficientStatistics | Get the marginal likelihood of a "BayesianBrick" object
marginalLikelihood_bySufficientStatistics.CatDirichlet | Marginal likelihood of a "CatDirichlet" object, usnig sufficient statistics
marginalLikelihood_bySufficientStatistics.CatDP | Marginal likelihood of a "CatDP" object, usnig sufficient statistics
marginalLikelihood_bySufficientStatistics.GaussianNIG | Marginal likelihood of a "GaussianNIG" object, usnig sufficient statistics
marginalLikelihood_bySufficientStatistics.GaussianNIW | Marginal likelihood of a "GaussianNIW" object, usnig sufficient statistics
MetropolisHastings | Metropolis-Hastings sampler
mmData | Samples from a mixture model
mmhData | Samples from a hierarchical mixture model
mmhhData | Samples from a hierarchical mixture model with two layers of hierarchies
MPE | Get the Mean Posterior Estimate(MPE) of a "BayesianBrick" object
MPE.CatDirichlet | MPE of a "CatDirichlet" object
MPE.CatDP | Mean Posterior Estimate(MPE) of a "CatDP" object
MPE.GaussianNIG | MPE estimate of a "GaussianNIG" object
MPE.GaussianNIW | Mean Posterior Estimate(MPE) of a "GaussianNIW" object

## -- P --

pdsInverse | Inverse of a positive definite symmetric matrix
posterior | update the prior distribution with sufficient statistics
posterior.CatDirichlet | Update a "CatDirichlet" object with sample sufficient statistics
posterior.CatDP | Update a "CatDP" object with sample sufficient statistics
posterior.CatHDP | Update a "CatHDP" object with sample sufficient statistics
posterior.CatHDP2 | Update a "CatHDP2" object with sample sufficient statistics
posterior.DP | Update a "DP" object with sample sufficient statistics
posterior.GaussianNIG | Update a "GaussianNIG" object with sample sufficient statistics
posterior.GaussianNIW | Update a "GaussianNIW" object with sample sufficient statistics
posterior.HDP | Update a "HDP" object with sample sufficient statistics
posterior.HDP2 | Update a "HDP2" object with sample sufficient statistics
posteriorDiscard | update the prior distribution with sufficient statistics
posteriorDiscard.CatDirichlet | Update a "CatDirichlet" object with sample sufficient statistics
posteriorDiscard.CatDP | Update a "CatDP" object with sample sufficient statistics
posteriorDiscard.CatHDP | Update a "CatHDP" object with sample sufficient statistics
posteriorDiscard.CatHDP2 | Update a "CatHDP2" object with sample sufficient statistics
posteriorDiscard.DP | Update a "DP" object with sample sufficient statistics
posteriorDiscard.GaussianNIG | Update a "GaussianNIG" object with sample sufficient statistics
posteriorDiscard.GaussianNIW | Update a "GaussianNIW" object with sample sufficient statistics
posteriorDiscard.HDP | Update a "HDP" object with sample sufficient statistics
posteriorDiscard.HDP2 | Update a "HDP2" object with sample sufficient statistics
posteriorDiscard_bySufficientStatistics | update the prior distribution with sufficient statistics
posteriorDiscard_bySufficientStatistics.CatDirichlet | Update the prior Dirichlet distribution with sample sufficient statistics
posteriorDiscard_bySufficientStatistics.CatDP | Update a "CatDP" object with sample sufficient statistics
posterior_bySufficientStatistics | update the prior distribution with sufficient statistics
posterior_bySufficientStatistics.CatDirichlet | Update a "CatDirichlet" object with sample sufficient statistics
posterior_bySufficientStatistics.CatDP | Update a "CatDP" object with sample sufficient statistics
print.BasicBayesian | Print the content of an BasicBasyesian object
print.CatHDP | Print the content of an CatHDP object
print.CatHDP2 | Print the content of an CatHDP2 object
print.DP | print the content of a "DP" object
print.HDP | print the content of a "HDP" object
print.HDP2 | print the content of a "HDP2" object

## -- R --

rCategorical | Random generation for Categorical distribution
rDir | Random generation for Dirichelt distribution
release_questions | additional release questions
rGaussian | Random generation for Gaussian distribution
rPosteriorPredictive | Generate random samples from the posterior predictive distribution
rPosteriorPredictive.CatDirichlet | Posterior predictive random generation of a "CatDirichlet" object
rPosteriorPredictive.CatDP | Posterior predictive random generation of a "CatDP" object
rPosteriorPredictive.CatHDP | Posterior predictive random generation of a "CatHDP" object
rPosteriorPredictive.CatHDP2 | Posterior predictive random generation of a "CatHDP2" object
rPosteriorPredictive.DP | Posterior predictive random generation of a "DP" object
rPosteriorPredictive.GaussianNIG | Posterior predictive random generation of a "GaussianNIG" object
rPosteriorPredictive.GaussianNIW | Posterior predictive random generation of a "GaussianNIW" object
rPosteriorPredictive.HDP | Posterior predictive random generation of a "HDP" object
rPosteriorPredictive.HDP2 | Posterior predictive random generation of a "HDP2" object
rT | Random Generation for (multivariate) t distribution

## -- S --

sufficientStatistics | Get sample sufficient statistics
sufficientStatistics.CatDirichlet | Sufficient statistics of a "CatDirichlet" object
sufficientStatistics.CatDP | Sufficient statistics of a "CatDP" object
sufficientStatistics.DP | Sufficient statistics of a "DP" object
sufficientStatistics.GaussianNIG | Sufficient statistics of a "GaussianNIG" object
sufficientStatistics.GaussianNIW | Sufficient statistics of a "GaussianNIW" object
sufficientStatistics.HDP | Sufficient statistics of a "HDP" object
sufficientStatistics.HDP2 | Sufficient statistics of a "HDP2" object
sufficientStatistics_Weighted | Get weighted sample sufficient statistics
sufficientStatistics_Weighted.CatDirichlet | Weighted sufficient statistics of a "CatDirichlet" object
sufficientStatistics_Weighted.CatDP | Weighted sufficient statistics of a "CatDP" object
sufficientStatistics_Weighted.DP | Weighted sufficient statistics of a "DP" object
sufficientStatistics_Weighted.GaussianNIG | Weighted sufficient statistics of a "GaussianNIG" object
sufficientStatistics_Weighted.GaussianNIW | Weighted sufficient statistics for a "GaussianNIW" object
sufficientStatistics_Weighted.HDP | Weighted sufficient statistics of a "HDP" object
sufficientStatistics_Weighted.HDP2 | Weighted sufficient statistics of a "HDP2" object

## -- misc --

%plus% | a plus b with NA values
.is | a internal version of "is", only for this package