Description Usage Arguments Value See Also Examples

Subsets a smaller portion from a `mcmc.list`

object
corresponding only to the node(s) requested.

1 2 3 4 5 6 7 8 |

`post` |
A |

`params` |
A vector of regular expressions specifying the nodes to match for subsetting.
Accepts multi-element vectors to match more than one node at a time.
See |

`matrix` |
Return samples in |

`iters` |
Retain the iteration number of each sample if |

`chains` |
Retain the chain number of each sample if |

`auto_escape` |
Automatically escape |

A `mcmc.list`

or `matrix`

object, depending on the
value of the `matrix`

argument. Object contains all nodes that match the `params`

argument;
an error will be returned if no matches are found.

1 2 3 4 5 6 7 8 9 10 11 | ```
# 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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.