Given a previously defined mass function (bca), the user may want to add some elements of the set of possible values or some subsets, even if they have zero mass value. This feature is useful, for example, to examine the plausibility results of these elements or subsets of zero mass value.
A basic chance assignment mass function (see
A matrix constructed in a boolean style (0,1) or a boolean matrix. The number of columns of the matrix
The original bca mass function
x augmented with the added subsets defined by
Claude Boivin, Stat.ASSQ
1 2 3 4 5 6 7 8 9 10 11
y <- bca(f=matrix(c(1,0,0,1,1,1),nrow=2, byrow = TRUE), m=c(0.6, 0.4), cnames = c("a", "b", "c"), varnb=1) addTobca(y, matrix(c(0,1,0,0,0,1, 0,1,1), nrow=3, byrow = TRUE)) x <- bca(f=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"), varnb=1) xy <- dsrwon(x,y) xy1 <- addTobca(nzdsr(xy), matrix(c(0,1,0,0,0,1), nrow=2, byrow = TRUE)) xy1 addTobca(x, f = diag(1, ncol(x$tt) ) ) # add all singletons
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.