map.configurations {gRaven} | R Documentation |
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)
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 |
Details
Emulates function of the same name in the RHugin
package by calls to gRain
functions
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.
Author(s)
Therese Graversen, theg@itu.dk
Examples
demo("chest",package="gRaven",echo=FALSE)
set.finding(chest,"asia","yes")
set.finding(chest,"dysp","no")
map.configurations(chest,c("lung","bronc"),0.0001)
[Package gRaven version 1.1.8 Index]