optimizing_best: Run several instances of the optimization algorithm.

Description Usage Arguments Value

Description

Note that this function returns the results of the converging instance with highest log posterior density while optimizing_all returns all.

Usage

1
optimizing_best(stanDots, nRuns, nCores)

Arguments

stanDots

The arguments to the passed to rstan's optimizing.

nRuns

An optional integer with the number of initializations.

nCores

An optional integer with the number of cores to be used. If equal to one, the instances are run sequentially. Otherwise, doParallel's backend is used for parallel computing. It defaults to one.

Value

An Optimization object.


luisdamiano/BayesHMM documentation built on May 20, 2019, 2:59 p.m.