partitionDist {genMCMCDiag} | R Documentation |
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)
Arguments
x |
Data.frame with columns node and partition |
y |
Data.frame with columns node and partition. Same nrows as x. |
Value
Numeric, Partition distance between x and y.
Note
For speed, no error handling if x and y do not have the same dimensions. Also, does not test to make sure x,y are data.frames of integers, take care!
Examples
x <- bnMCMCResults[[1]][[1]]
y <- bnMCMCResults[[1]][[100]]
partitionDist(x, y)
[Package genMCMCDiag version 0.2.2 Index]