Learn R Programming

dst (version 1.8.0)

commonality: Compute qq from tt

Description

qq is the commonality function as a set function from the subsets of the frame to \([0,1]\). To evaluate it, input a set encoded in binary vector, so the commonality number at that set can be returned.

Usage

commonality(tt, m, fzt = FALSE)

Value

f Commonality function

Arguments

tt

Mass assignment set matrix

m

Mass assignment

fzt

= FALSE Whether to use Fast Zeta Transform

Author

Peiyuan Zhu

Examples

Run this code
x <- bca(tt = matrix(c(0,1,1,1,1,0,1,1,1),nrow = 3, byrow = TRUE),
m = c(0.2,0.5, 0.3), cnames = c("a", "b", "c"), varnames = "x", idvar = 1)
qq <- commonality(x$tt,x$spec[,2])
qq(c(1,0,0))

Run the code above in your browser using DataLab