Description Usage Arguments Examples
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.
1 2 | 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. |
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.