get_params: Obtain the names of all nodes

Description Usage Arguments Value Examples

View source: R/get_params.R

Description

Returns the names of all quantities stored in a mcmc.list object.

Usage

1
get_params(post, type = "base_only")

Arguments

post

A mcmc.list object.

type

Format of returned matches; only two options are accepted:

  • type = "base_only" (the default) to return only the unique node names (without indices).

  • type = "base_index" to return the node names with indices included.

Value

A character vector with all node names stored in the post object, formatted as requested by type.

Examples

1
2
3
4
5
6
7
8
 # load example mcmc.list
data(cjs)

# get only node names, no indices (default)
get_params(cjs, type = "base_only")

# get indices too, where applicable
get_params(cjs, type = "base_index")

postpack documentation built on June 3, 2021, 1:07 a.m.