utl_jags_trc: A simple wrapper for MCMC trace to produce jags graphcs in...

Description Usage Arguments Value Examples

Description

A simple wrapper for MCMC trace to produce jags graphcs in Rmarkdown

Usage

1
utl_jags_trc(x, ..., excl = "deviance", ind = T, pdf = F)

Arguments

x

An object of class rjags (from R2jags) or jagsUI

Value

Returns trace plots of tracked parameters

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
jags_result %>% util_jags_trc()

# plot only density
jags_result %>% utl_jags_trc(type = "density")

# produce a PDF
jags_result %>% utl_jags_trc(pdf = T)

# Exclude b0.p from the plots
jags_result %>% utl_jags_trc(excl = "b0.p")

foresthayes/jagsutl documentation built on May 30, 2019, 2:11 p.m.