This is a generic function that will generate the marginal likelihood of a set of observations conditioned on a given "BayesianBrick" object. i.e. for the model structure: theta|gamma ~ H(gamma) X|theta ~ F(theta) Marginal likelihood is p(X|gamma), p() is the probability density/mass function for contunious/discrete X.
marginalLikelihood_bySufficientStatistics(obj, ...)A "BayesianBrick" object used to select a method.
further arguments passed to or from other methods.
numeric, the marginal likelihood
marginalLikelihood_bySufficientStatistics.GaussianNIW for Gaussian-NIW conjugate structure, marginalLikelihood_bySufficientStatistics.GaussianNIG for Gaussian-NIG conjugate structure, marginalLikelihood_bySufficientStatistics.CatDirichlet for Categorical-Dirichlet conjugate structure, marginalLikelihood_bySufficientStatistics.CatDP for Categorical-DP conjugate structure ...