Learn R Programming

gRain (version 1.3-2)

compile_components: Compile conditional probability tables / cliques potentials.

Description

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

Usage

compile_cpt(x, forceCheck = TRUE)

compile_pot(x)

Arguments

x

To compile_cpt x is a list of conditional probability tables; to compile_pot, x is a list of clique potentials.

forceCheck

Controls if consistency checks of the probability tables should be made.

...

Additional arguments; currently not used.

Value

A list with a class attribute.

Details

compileCPT, compilePOT are wrappers for compile_cpt and compile_pot and are kept for backward compatibility.

References

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/.

See Also

extract_cpt, extract_pot