network.gelman.diag: Use coda package to find Gelman-Rubin diagnostics

Description Usage Arguments Value Examples

View source: R/network.summary.R

Description

This function uses coda package to find Gelman-Rubin diagnostics.

Usage

1
network.gelman.diag(result, extra.pars = NULL, only.pars = NULL)

Arguments

result

Object created by network.run function

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 gelman-rubin diagnostics

Examples

1
2
3
4
5
6
7
network <- with(statins, {
 network.data(Outcomes, Study, Treat, N = N, response = "binomial",
 Treat.order = c("Placebo", "Statin"), covariate = covariate, covariate.type = "discrete")
})

result <- network.run(network)
network.gelman.diag(result, extra.pars = c("Eta"))

bnma documentation built on Jan. 3, 2022, 5:12 p.m.