Learn R Programming

gRain (version 1.2-5)

compileCPT,compilePOT: Compile conditional probability tables / cliques potentials.

Description

Compile conditional probability tables / cliques potentials as a preprocessing step for creating a graphical independence network

Usage

compileCPT(x, forceCheck=TRUE, details=0) compilePOT(x)

Arguments

x
To compileCPT x is a list of conditional probability tables; to compilePOT, x is a list of clique potentials
forceCheck
Controls if consistency checks of the probability tables should be made.
details
Controls amount of print out. Mainly for debugging purposes

Value

compileCPT returns a list of class 'cptspec' compilePOT returns a list of class 'potspec'

References

Sren Hjsgaard (2012). Graphical Independence Networks with the gRain Package for R. Journal of Statistical Software, 46(10), 1-26. http://www.jstatsoft.org/v46/i10/.

See Also

extractCPT, extractPOT