extract_grid: Extract summary results from the optimization procedure.

Description Usage Arguments Value Methods (by class)

Description

Extract summary results from the optimization procedure.

Usage

1
2
3
4
5
6
7
extract_grid(stanoptim, pars)

## S3 method for class 'Optimization'
extract_grid(stanoptim, pars = NULL)

## S3 method for class 'OptimizationList'
extract_grid(stanoptim, pars = NULL)

Arguments

stanoptim

An object returned by optimizing.

pars

An optional vector of characters with the name of the quantities to be extracted. The characters strings may include regular expressions. Further, wildcards are automatically translated into regex: ? matches a single character, while * matches any character string including an empty one. For example, ?pred will match both ypred and zpred, and z* will match zstar and zpred. It defaults to all the parameters.

Value

A named matrix with one row for each time the optimization procedure was run. Columns include the seed, the estimated log posterior evaluated at the maximum, the code returned by the optimization algorithm, the time elapsed (user, system and total) in seconds, and the estimated value of the parameters selected in

Methods (by class)


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