network.autocorr.diag {bnma} | R Documentation |
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.
network.autocorr.diag(
result,
lags = c(0, 1, 5, 10, 50),
extra.pars = NULL,
only.pars = NULL
)
result |
Object created by |
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. |
Returns autocorrelation diagnostics
network <- with(blocker, {
network.data(Outcomes, Study, Treat, N = N, response = "binomial")
})
result <- network.run(network)
network.autocorr.diag(result, only.pars = "d")