powered by
Compute the log of the integrated Gaussian likelihood, where the model paramaters are integrated out with respect to a normal-inverse gamma prior.
LogIntegratedGaussianLikelihood(suf, prior)
Returns a scalar giving the log integrated likelihood.
A GaussianSuf object describing the data.
GaussianSuf
A NormalInverseGammaPrior describing the prior distribution.
NormalInverseGammaPrior describing the prior distribution.
Steven L. Scott steve.the.bayesian@gmail.com
prior <- NormalInverseGammaPrior(10, 2, sqrt(2), 1) y <- c(7.8949, 9.17438, 8.38808, 5.52521) suf <- GaussianSuf(y) loglike <- LogIntegratedGaussianLikelihood(suf, prior) # -9.73975
Run the code above in your browser using DataLab