# load example mcmc.list
data(cjs)
# create mcmc.list with all nodes that contain "B0"
x1 = post_subset(cjs, "B0")
# create mcmc.list with all nodes that contain "b" or "B"
x2 = post_subset(cjs, c("b", "B"))
# perform the subset and return a matrix as output, while retaining the chain ID
x3 = post_subset(cjs, "B0", matrix = TRUE, chain = TRUE)
Run the code above in your browser using DataLab