Description Usage Arguments Details See Also Examples
Obtain variable names, types, description fields, sample spaces, parent sets and CPTs for a causal independence Bayesian network.
1 2 3 4 5 6 | getVariables(x)
getTypes(x)
getDescription(x)
getStates(x)
getParSets(x, full=FALSE)
getCPT(x, variables=NULL)
|
x |
An object of class |
full |
Only for function |
variables |
Only for function |
Function getVariables
returns the variable names, function getTypes
returns the variable types, function getDescription
returns the description fields, function getStates
returns the sample spaces, function getParSets
returns the parent sets, and function getCPT
computes one or more CPTs of interest.
new.cibn.
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(bankrisk_code)
bankrisk_bn <- new.cibn(bankrisk_code)
#
getVariables(bankrisk_bn)
getTypes(bankrisk_bn)
getStates(bankrisk_bn)
getDescription(bankrisk_bn)
#
getParSets(bankrisk_bn)
getParSets(bankrisk_bn, full=TRUE) ## parent sets of the full DAG
#
getCPT(bankrisk_bn) ## CPTs of all variables
getCPT(bankrisk_bn, variables=c("Portf","Life"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.