Learn R Programming

rethinking (version 1.34)

resample: Resample map2stan fit

Description

Sample from a new chain or chains, using a previous map2stan fit object.

Usage

resample( object , iter=1e4 , warmup=1000 , chains=1 , ... )

Arguments

object

Object of class map2stan

iter

Number of sampling iterations, including warmup

warmup

Number of adaptation steps

chains

Number of independent chains

...

Other parameters to pass to stan

Value

An object of class map2stan, holding the new samples, as well as all of the original formulas and data for the model.

Details

This function is a convenience for drawing more samples from an initial map2stan fit.

References

McElreath 2011, Statistical Rethinking.

See Also

map2stan