extractCPT,extractPOT {gRain}R Documentation

Extract conditional probabilities and clique potentials from data

Description

Extract conditional probabilities and clique potentials from data

Usage

extractCPT(x, graph, V = nodes(graph), smooth = 0)
extractPOT(x, graph, smooth = 0)

Arguments

x A contingency table (an array)
graph To extractCPT graph is a DAG while to extractPOT graph is an undirected triangulated graph.
V The set of vertices for which CPTs should be extracted
smooth See 'details' below

Details

If smooth is non–zero then zero entries of values are replaced with smooth before normalization takes place.

Value

extractCPT: A list of conditional probability tables extractPOT: A list of clique potentials

Author(s)

Søren Højsgaard, sorenh@agrsci.dk

See Also

compileCPT, compilePOT, grain


[Package gRain version 0.8.1 Index]