Compile conditional probability tables / cliques potentials as a preprocessing step for creating a graphical independence network
compileCPT(x, forceCheck = TRUE, details = 0)compilePOT(x)
To compileCPT
x is a list of conditional
probability tables; to compilePOT
, x is a list of clique
potentials
Controls if consistency checks of the probability tables should be made.
Controls amount of print out. Mainly for debugging purposes
compileCPT
returns a list of class 'cptspec'
compilePOT
returns a list of class 'potspec'
S<U+00F8>ren H<U+00F8>jsgaard (2012). Graphical Independence Networks with the gRain Package for R. Journal of Statistical Software, 46(10), 1-26. http://www.jstatsoft.org/v46/i10/.