The confint
method for class ebnm
.
Estimates the highest posterior density (HPD) intervals by sampling from
the posterior. By default, ebnm
does not return a posterior
sampler; one can be added to the ebnm
object using function
ebnm_add_sampler
.
# S3 method for ebnm
confint(object, parm, level = 0.95, nsim = 1000, ...)
A matrix with columns giving lower and upper confidence limits for each mean \(\theta_i\). These will be labelled as "CI.lower" and "CI.upper".
The fitted ebnm
object.
A vector of numeric indices specifying which means \(\theta_i\) are to be given confidence intervals. If missing, all observations are considered.
The confidence level required.
The number of samples to use to estimate confidence intervals.
Additional arguments to be passed to the posterior sampler
function. Since ebnm_horseshoe
returns an MCMC sampler, it takes
parameter burn
, the number of burn-in samples to discard. At
present, no other samplers take any additional parameters.