
The unnormalized log density behind an MCMC posterior's log_prob() method
Source: R/nle_posterior.R
mcmc_log_prob.RdNeither surrogate gives the evidence \(p(x)\), so normalize = TRUE has
nothing to normalize by and says so rather than returning a number that
looks like a density.
Arguments
- post
An MCMC-sampled
nsbi_posterior.- theta
Parameter values to evaluate.
- x
Observation to condition on, or
NULLfor the posterior's own.- warn
Warn that
normalizeis being ignored (the caller decides, since only it can see whether the argument was actually supplied).- what
The method name to use in that warning,
"NLE"or"NRE".