Getting ready

In order to run this recipe, the bnlearn package needs to be installed using install.packages("bnlearn").

Get R Statistics Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.