Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

focal_-

Replacement Function for Focal Elements


Description

Replaces focal elements of a mass function.

Usage

focal(x) <- value

Arguments

x

a mass function

value

new focal elements for the mass function

Value

mass function with focal elements replaced.

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

Examples

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

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

# replace focal elements
focal(m) <- list("a/b"=1)

EvCombR

Evidence Combination in R

v0.1-2
MIT + file LICENSE
Authors
Alexander Karlsson
Initial release
2014-04-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.