Learn R Programming

gRaven (version 1.1.10)

map.configurations: Get belief in a gRaven domain

Description

Find the configurations of the specified nodes that occur with probability pmin or greater. These configurations are known as most probable configurations or maximum a posteriori (MAP) configurations.

Usage

map.configurations(domain, nodes, pmin)

Value

Data.frame with one column for each node in nodes. Each row contains a most probable configuration. The final column of the data.frame (Prob) gives the probability of the configuration.

Arguments

domain

name of gRaven domain

nodes

character vector of names of nodes

pmin

a single numeric value between 0 and 1 specifying the minimum probability for the most probable configurations

Author

Therese Graversen, theg@itu.dk

Details

Emulates function of the same name in the RHugin package by calls to gRain functions

Examples

Run this code
demo("chest",package="gRaven",echo=FALSE)
set.finding(chest,"asia","yes")
set.finding(chest,"dysp","no")
map.configurations(chest,c("lung","bronc"),0.0001)

Run the code above in your browser using DataLab