discover_hierarchy_and_fit: Find the relationship between the variables in a data set and...

Description Usage Arguments Value Examples

View source: R/variablerelationships.R

Description

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

Usage

1

Arguments

data

the data.frame containing the observations and variables to inspect

Value

a fitted architecture

Examples

1
2
3
4
data(mtcars)
library(dplyr)
myfit <- discover_hierarchy_and_fit(mtcars)
if (requireNamespace("Rgraphviz")) bnlearn::graphviz.plot(myfit)

DoktorMike/datools documentation built on Feb. 28, 2021, 8:39 a.m.