commonality: Compute qq from tt

View source: R/commonality.R

commonalityR Documentation

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)

Arguments

tt

Mass assignment set matrix

m

Mass assignment

fzt

= FALSE Whether to use Fast Zeta Transform

Value

f Commonality function

Author(s)

Peiyuan Zhu

Examples

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))

RAPLER/dst-1 documentation built on Oct. 15, 2024, 9:24 p.m.