Description Usage Arguments Value Examples
View source: R/variablerelationships.R
Finds the hirarchical relationship between all variables and connects them in a network such as to optimize the mutual information. This just fits the network selected by HillClimbing using a Bayesian information criteria (BIC).
1 |
data |
the data.frame containing the observations and variables to inspect |
a fitted architecture
1 2 3 4 | data(mtcars)
library(dplyr)
myfit <- discover_hierarchy_and_fit(mtcars)
if (requireNamespace("Rgraphviz")) bnlearn::graphviz.plot(myfit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.