Learn R Programming

bbemkr (version 1.1)

bbeloglikelihood: Calculate the log likelihood used in the Chib's (1995) log marginal density

Description

Calculates the log likelihood using the estimated bandwidths of the regressors and variance of the error density

Usage

bbeloglikelihood(data_x, data_y, x, sigma)

Arguments

data_x
Regressors
data_y
Response variable
x
Estimated bandwidths of the regressors, after MCMC iterations
sigma
Estimated variance of the error density, after MCMC iterations

Value

  • The value of log likelihood

Details

According to Chib (1995), the log marginal density = loglikelihood + logprior - logdensity

References

S. Chib (1995) Marginal likelihood from the Gibbs output, Journal of the American Statistical Association, 90, 432, 1313-1321. M. A. Newton and A. E. Raftery (1994) Approximate Bayesian inference by the weighted likelihood bootstrap (with discussion), Journal of the Royal Statistical Society, 56, 3-48.

See Also

bbelogpriors, bbelogdensity, bbeMCMCrecording