diagMCMC: diagnose plots Various plots to test the effiency and...

View source: R/diag.R

diagMCMCR Documentation

diagnose plots Various plots to test the effiency and convergence of MCMC

Description

diagnose plots Various plots to test the effiency and convergence of MCMC

Usage

diagMCMC(codaObject, parName, outputF = "diagPlot")

Arguments

codaObject

output from BernHierModel

parName

parameter to be dignosised

outputF

output folder

Value

save diagnosis files in the output folder

Note

Scripts have been modified from "Doing Bayesian Data Analysis (2nd)" by John K. Kruschke.

Examples

byesRes.A <- BernHierModel(F1.TypeA[, -1], saveName = "Family1.TypeA")
parameterNames.A <- coda::varnames(byesRes.A)[1]
diagMCMC(byesRes.A, parameterNames.A, outputF = "Family1.TypeA.parameters")

ccshao/maIHB documentation built on July 9, 2022, 3:48 p.m.