Dear Alexsandro, On 9 June 2014 02:27, Alexsandro Cândido de Oliveira Silva <a...@dpi.inpe.br> wrote: > So, how could I deal with the data and get the conditional probability > distribution?
As of the current release (3.5), all functions in bnlearn require complete data so that error message is expected. However, you can estimate the CPTs from incomplete data using table() and prop.table() and assemble them in a fitted BN with custom.fit(). On the other hand, maybe it would be better to write an EM wrapper around bn.fit() to make the best of the dependence structure of the data? Cheers, Marco -- Marco Scutari, Ph.D. Research Associate, Genetics Institute (UGI) University College London (UCL), United Kingdom ______________________________________________ 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.