mass {EvCombR}R Documentation

Constructor Function for Mass Functions

Description

Construct a mass function based on a named list of focal elements or a massQ-class object. For more information, see the details section.

Usage

mass(x, y)

Arguments

x

a named list of focal elements or a massQ-class object

y

a character vector representing the state space or missing if x is an massQ object.

Details

Focal elements are represented by the notation "<s1>/.../<sn>" where <s1>...<sn> are any states within the state space (see the examples below). Note that the word "ES" and the symbol "/" are reserved.

Value

mass function

Author(s)

Alexander Karlsson

References

Dempster, A. P. (1969), A generalization of Bayesian inference, Journal of the Royal Statistical Society, 30, 205-247

Shafer, G. (1976), A Mathematical Theory of Evidence Princeton University Press

See Also

dComb, mComb, yComb

Examples

# state space
stateSpace <- c("a", "b", "c")

# construct mass functions 
m1 <- mass(list("a"=0.1, "b"=0.1 , "c"=0.4, "a/b/c"=0.4), stateSpace)
m2 <- mass(list("a"=0.1, "b"=0.1, "c"=0.1, "a/b"=0.1, "a/c"=0.1, 
                "b/c"=0.1, "a/b/c"=0.4), stateSpace)

# apply Yager's combination operator, m12 will be a massQ-object 
m12Q <- yComb(m1,m2)

# contruct a mass function from an massQ-object
m12 <- mass(m12Q)


[Package EvCombR version 0.1-4 Index]