Learn R Programming

⚠️There's a newer version (1.8.0) of this package.Take me there.

dst

Using Dempster-Shafer Theory of Evidence, also called "Theory of Belief Functions". Basic probability assignments, or mass functions, can be defined on the subsets of a set of possible values. Two mass functions on a variable A can be combined using Dempster's rule of combination. Relations between two variables A and B can be characterized by a mass functions defined on their product space A x B. A mass function on a variable A can be extended to the frame A x B. Dempster's rule of combination can be applied to product space. Marginalization, namely reduction to a smaller frame can also be done. These features can be combined to analyze small belief networks described by an hypergraph and take into account situations where information cannot be satisfactorily described by probability distributions. An algorithm, the peeling, is provided to compute belief functions in a hypergraph.

Installation

Install from CRAN: install.package("dst")

Examples

See vignettes.

Copy Link

Version

Install

install.packages('dst')

Monthly Downloads

316

Version

1.5.2

License

GPL (>= 2)

Maintainer

Claude Boivin

Last Published

November 16th, 2023

Functions in dst (1.5.2)

extmin

Extension of a relation
inters

Intersection of two tables of propositions
nzdsr

Normalization of a basic chance assignment
nameRows

Combining the column names of a matrix to construct names for the rows
matrixToMarray

Transformation of the tt matrix of a relation
marrayToMatrix

Transformation of an array data to its matrix representation
plautrans

Plausibility transformation of the singletons of a frame
shape

Obtain dimensions of an array or length of a vector with a single command
peeling

The peeling algorithm
tabresul

Prepare a table of results
elim

Reduction of a relation
nameCols_prod

Naming the columns of the tt matrix of a product space
nameCols

Naming the columns of the tt matrix
mrf

The Captain's Problem. mrf: Relation between variables No Maintenance (M = false) and Repairs at sea (R)
swr

The Captain's Problem. swr: Relation between variables Sailing delay (S), Weather at sea (W), and Repairs at sea (R)
mrt

The Captain's Problem. mrt: Relation between variables Maintenance done (M = true) and Repairs at sea (R)
dst-package

Manipulation and combination of belief functions
reduction

Summary of a vector for any operator.
productSpace

Product space representation of a relation
bcaRel

Representation of a mass function in a product space
bcaTrunc

Truncation of a basic chance assignment mass function
dotprod

Generalized inner product of two matrices
bcaPrint

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

The Captain's Problem. dlfm: Relation between variables Departure delay (D), Loading delay (L), Forecast of the weather (F), Maintenance delay (M)
decode

Find the value in base 10 of a number coded in another base
bca

Basic chance assignment mass function
belplau

Calculation of the degrees of Belief and Plausibility of a basic chance assignment (bca).
addTobca

Add some elements of 0 mass to an existing basic chance assignment.
doubles

Remove duplicate rows in a two-dimensional table.
encode

Convert a value to its representation in another chosen base
dsrwon

Combination of two mass functions
ads

The Captain's Problem. ads: Relation between variables Arrival (A), Departure delay (D) and Sailing delay (S)
fw

The Captain's Problem. fw: Relation between variables Forecast of the weather (F) and Weather at sea (W)