plot.cluster.test {bayesclust}R Documentation

Plot Running Posterior Probabilities to Monitor Convergence

Description

plot.cluster.test will plot the running posterior probabilities that were computed by cluster.test. These plots can be used to monitor convergence of the computation carried out by cluster.test.

Usage

## S3 method for class 'cluster.test':
plot(x, ...)

Arguments

x x is an object of class ``cluster.test'', which is returned when cluster.test is run on a dataset.
... Additional arguments to be passed to the inherited plot function.

Author(s)

Gopal, V.

References

Fuentes, C. and Casella, G. (2008) "Testing for the Existence of Clusters" http://www.stat.ufl.edu/~casella/Papers/paper-v3.pdf

Gopal, V. "BayesClust User Manual" http://www.stat.ufl.edu/~viknesh/bayesclust/clust.html

See Also

cluster.test for further information on objects of class ``cluster.test''.

plot for details on arguments that can be passed through ...

Examples

# Generate random 2-variate data
Y <- matrix(rnorm(24), nrow=12)

# Search for optimal partitioning of data into 2 clusters
test1 <- cluster.test(Y, p=2, nsim=5000)

# Plot the running posterior probabilities to monitor convergence
plot(test1)


[Package bayesclust version 2.1 Index]