bcaTrunc | R Documentation |
When working with large frames of discernment, the bca resulting of repeated application of Dempster's Rule of Combination can become big. One way to handle this situation could be to group subsets whose mass is less than a small treshold value. The function bcaTrunc
serves this purpose to reduce a large bca to its main elements.
bcaTrunc(x, seuil, use_ssnames = FALSE)
x |
A bca to truncate. |
seuil |
A treshold value |
use_ssnames |
Put TRUE to use ssnames parameteer instead of description matrix. Default = FALSE. |
tr_x The bca object truncated.
Claude Boivin
x <- bca(tt = matrix(c(0,1,0,0,
0,0,1,1,
1,1,0,0,
1,0,1,0,
0,1,1,0,
1,1,1,1),ncol=4, byrow = TRUE), m = c(0.2, 0.5, 0.06, 0.04, 0.03, 0.17),
cnames = c("a", "b", "c", "d"))
bcaPrint(x)
tr_x <- bcaTrunc(x, seuil = 0.1)
bcaPrint(tr_x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.