I am trying to use your package gRain using your book on graphical models in R to do predictions, I have 38 columns of vectors all factors and built a bayesian network using iamb() function, then I used the following command to make a grpahNEL (However, I have 38 nodes and 106 edges) using BN<-iamb(data1) BN.gr<-as(amat(BN),"graphNEL") Then when I am using the following command to make a grain object I got the following errors, any thoughts? Thanks a lot for your help in advance.
BN.grain<-grain(BN.gr,data=data1) Error in function (classes, fdef, mtable) : unable to find an inherited method for function "nodes", for signature "graphNEL", "missing" -- View this message in context: http://r.789695.n4.nabble.com/R-pkgs-New-package-gRain-gRAphical-Independence-Networks-tp846943p4651338.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.