simulate.ebnm {ebnm} | R Documentation |
Sample from the posterior of a fitted EBNM model
Description
The simulate
method for class ebnm
.
Extracts the posterior sampler from an object of class ebnm
and returns a specified number of samples.
Usage
## S3 method for class 'ebnm'
simulate(object, nsim = 1, seed = NULL, ...)
Arguments
object |
The fitted |
nsim |
The number of posterior samples to return per observation. |
seed |
Either |
... |
Additional arguments to be passed to the posterior sampler
function. Since |
Value
A matrix of posterior samples, with rows corresponding to distinct samples and columns corresponding to observations.