Learn R Programming

BDgraph (version 1.0)

plot_cumulative: Cumulative occupancy fractions

Description

Tools for checking the convergency of the BDMCMC algorithm

Usage

plot_cumulative(output, distance = 1)

Arguments

output
A list which is the result of BDMCMC algorithm
distance
It is the option for fast result for a cumulative plot according to part of the iterations.

References

Mohammadi, A. and E. Wit (2012). Efficient birth-death MCMC inference for Gaussian graphical models, Journal of the Royal Statistical Society: Series B, submitted.

See Also

BDMCMC.low

Examples

Run this code
n=100; p=5
truK=diag(p)
for (i in 1:(p-1)) truK[i,i+1]=truK[i+1,i]=0.5
truK[1,p]=truK[p,1]=0.4
data=mvrnorm(n,c(rep(0,p)),solve(truK))
data(output.low)
  output <- output.low
output = BDMCMC(data)
# we run it for distance=20, you can run it for distance=1 and it`s less than 10 minites
plot_cumulative(output,distance=20)

Run the code above in your browser using DataLab