Sample TMB fit

sample_tmb(
  fit,
  nsample = 1000,
  rng_seed = NULL,
  random_only = TRUE,
  verbose = FALSE
)

Arguments

fit

The TMB fit

nsample

Number of samples

rng_seed

seed passed to set.seed.

random_only

Random only

verbose

If TRUE prints additional information.

Value

Sampled fit.