get_params: Obtain the names of all nodes

View source: R/get_params.R

get_paramsR Documentation

Obtain the names of all nodes

Description

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

Usage

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

 # 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 Dec. 28, 2022, 1:23 a.m.