mcmc_to_dt.mcmc.list: Convert 'mcmc.list' to a tidy data.table object

Description Usage Arguments Examples

View source: R/mcmc_tidiers.R

Description

mcmc_to_dt use data.table to return a tidy dataframe from an "mcmc.list", or "stan" object.

Usage

1
2
## S3 method for class 'mcmc.list'
mcmc_to_dt(mcmc_object, ..., colnames = NULL)

Arguments

mcmc_object

an object of class "mcmc.list", as you would find with fitting a model using jags.model(), and coda.samples, or "stan", from fitting a stan model.

...

additional arguments

colnames

which parameters we want from mcmc_object, if NULL then all columns get selected

Examples

1
2
3

njtierney/dsmcmc documentation built on Oct. 4, 2021, 10:17 p.m.