network.autocorr.diag: Generate autocorrelation diagnostics using coda package

Description Usage Arguments Examples

View source: R/network.summary.R

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

1
2
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.

Examples

1
2
3
4
5
network <- with(blocker, {
 network.data(Outcomes, Study, Treat, N = N, response = "binomial")
})
result <- network.run(network)
network.autocorr.diag(result, only.pars = "d")

MikeJSeo/network-meta documentation built on Nov. 24, 2018, 1:01 p.m.