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

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")
#> [1] "B0" "sig_B0" "B1" "sig_B1" "b0" "b1" "SIG" "p"
# get indices too, where applicable get_params(cjs, type = "base_index")
#> [1] "B0" "sig_B0" "B1" "sig_B1" "b0[1]" "b0[2]" #> [7] "b0[3]" "b0[4]" "b0[5]" "b1[1]" "b1[2]" "b1[3]" #> [13] "b1[4]" "b1[5]" "SIG[1,1]" "SIG[2,1]" "SIG[1,2]" "SIG[2,2]" #> [19] "p[2]" "p[3]" "p[4]"