mass | R Documentation |
Construct a mass function based on a named list of focal elements or a massQ-class
object. For more information, see the details section.
mass(x, y)
x |
a named list of focal elements or a |
y |
a character vector representing the state space or missing if |
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.
mass function
Alexander Karlsson
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
dComb, mComb, yComb
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.