map.configurations | R Documentation |
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.
map.configurations(domain, nodes, pmin)
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 |
Emulates function of the same name in the RHugin
package by calls to gRain
functions
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.
Therese Graversen, theg@itu.dk
demo("chest",package="gRaven",echo=FALSE)
set.finding(chest,"asia","yes")
set.finding(chest,"dysp","no")
map.configurations(chest,c("lung","bronc"),0.0001)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.