bcaPrint: Simple printing of the 'tt' matrix and mass values of a basic...

View source: R/bcaPrint.R

bcaPrintR Documentation

Simple printing of the tt matrix and mass values of a basic chance assignment (bca)

Description

This utility function does a simple printing of a bca

Usage

bcaPrint(x, remove = FALSE)

Arguments

x

A list of class bcaspec.

remove

Default = FALSE. Put = TRUE to exclude subsets with zero mass.

Value

A table of subsets with their associated mass. Subsets are identified by row names.

Author(s)

Claude Boivin

Examples

z <- 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"), idvar = 1)
bcaPrint(z)
y <- bca(tt=matrix(c(1,0,0,1,1,1),nrow = 2, 
byrow = TRUE), m = c(0.6,0.4), include_all = TRUE,
cnames = c("a", "b", "c"),varnames = "y", idvar = 1)
 bcaPrint(y)
 bcaPrint(y, remove = TRUE)
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"), idvar = 1, method = "ezt-m")
 bcaPrint(x)

RAPLER/dst-1 documentation built on June 2, 2025, 9:22 a.m.