network.gelman.diag {bnma} | R Documentation |
Use coda package to find Gelman-Rubin diagnostics
Description
This function uses coda package to find Gelman-Rubin diagnostics.
Usage
network.gelman.diag(result, extra.pars = NULL, only.pars = NULL)
Arguments
result |
Object created by |
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
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"))
[Package bnma version 1.6.0 Index]