network.autocorr.diag {bnma}R Documentation

Generate autocorrelation diagnostics using coda package

Description

This function generates autocorrelation diagnostics using coda package. User can specify lags and parameters to display. Note that to display extra parameters that are not saved, user needs to first specify parameters in extra.pars.save parameter in network.run function.

Usage

network.autocorr.diag(
  result,
  lags = c(0, 1, 5, 10, 50),
  extra.pars = NULL,
  only.pars = NULL
)

Arguments

result

Object created by network.run function

lags

A vector of lags at which to calculate the autocorrelation

extra.pars

Extra parameters that the user wants to display other than the default parameters.

only.pars

Parameters that user wants to display. This gets rids of other default parameters user doesn't want to show.

Value

Returns autocorrelation diagnostics

Examples

network <- with(blocker, {
 network.data(Outcomes, Study, Treat, N = N, response = "binomial")
})

result <- network.run(network)
network.autocorr.diag(result, only.pars = "d")


[Package bnma version 1.6.0 Index]