Skip to contents

Marginal samples.

Usage

sample_marginal(fit, ...)

# S3 method for inla
sample_marginal(fit, i, n_obs, S = 1000, ...)

# S3 method for stanfit
sample_marginal(fit, i, n_obs, S = 1000, ...)

Arguments

fit

Fitted model.

...

Additional arguments passed to sample_marginal.

i

The index of the marginal to sample from.

n_obs

The sample size.

S

The number of draws.