Learn R Programming

genMCMCDiag (version 0.2.3)

partitionDist: Partition Distance

Description

Function to return the 'Partition' distance between two objects. Used for Bayesian Networks with the 'partition-MCMC' algorithm.

Usage

partitionDist(x, y)

Value

Numeric, Partition distance between x and y.

Arguments

x

Data.frame with columns node and partition

y

Data.frame with columns node and partition. Same nrows as x.

Examples

Run this code
x <- bnMCMCResults[[1]][[1]]
y <- bnMCMCResults[[1]][[100]]
partitionDist(x, y)

Run the code above in your browser using DataLab