| lindley_approx_censored | R Documentation |
Lindley Asymptotic Approximation for Posterior Expectations
lindley_approx_censored(log_lik, log_prior, init_par)
log_lik |
Log-likelihood function of parameter vector. |
log_prior |
Log-prior density function of parameter vector. |
init_par |
Maximum likelihood estimate or posterior mode. |
List with Lindley posterior estimates and standard errors.
lindley_approx_censored(
log_lik = function(th) -sum((c(1.2, 0.8, 1.5) - th[1])^2),
log_prior = function(th) dexp(th[1], rate = 1, log = TRUE),
init_par = c(1.1)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.