sample_admb_nuts: Run a single NUTS chain for an ADMB model

Description Usage Arguments See Also

View source: R/sample_admb.R

Description

A low level function to run a single chain. Unlikely to be used by a user, instead prefer sample_admb

Usage

1
2
3
sample_admb_nuts(path, model, iter = 2000, init = NULL, chain = 1,
  thin = 1, warmup = NULL, seed = NULL, duration = NULL,
  control = NULL, verbose = TRUE, extra.args = NULL)

Arguments

path

Path to model executable. Defaults to working directory. Often best to have model files in a separate subdirectory, particularly for parallel.

model

Name of model (i.e., model.tpl)

iter

The number of samples to draw.

init

A list of lists containing the initial parameter vectors, one for each chain or a function. It is strongly recommended to initialize multiple chains from dispersed points. A of NULL signifies to use the starting values present in the model (i.e., obj$par) for all chains.

chain

Chain number, for printing purposes only.

thin

The thinning rate to apply to samples. Typically not used with NUTS.

warmup

The number of warmup iterations.

seed

Random seed to use.

duration

The number of minutes after which the model will quit running.

control

A list to control the sampler. See details for further use.

verbose

Boolean for whether to print ADMB output to console.

extra.args

Character string of extra command line argument to pass to ADMB.

See Also

sample_admb


colemonnahan/adnuts documentation built on Feb. 13, 2018, 4 p.m.