Re: [R] bnlearn and cpquery

2017-07-14 Thread Ross Chapman
Dear Marco, Thanks for your helpful comments. Using the posterior estimates seems to have fixed the problem. Ross From: Marco Scutari [mailto:marco.scut...@gmail.com] Sent: Thursday, 13 July 2017 7:35 PM To: Ross Chapman Cc: r-help Subject: Re: [R] bnlearn and cpquery

[R] bnlearn and cpquery

2017-07-12 Thread Ross Chapman
Hi all I have built a Bayesian network using discrete data using the bnlearn package. When I try to run the cpquery function on this data it returns NaN for some some cases. Running the cpquery in debug mode for such a case (n=10^5, method="lw") creates the following output: generat

Re: [R] cpquery problem

2016-08-04 Thread Ross Chapman
ce with these queries. Regards Ross On Mon, August 1, 2016 7:35 pm, Marco Scutari wrote: > Hi Ross, > > > On 31 July 2016 at 09:11, Ross Chapman > wrote: > >> I have tried running the cpquery in the debug mode, and found that it >> typically returns the following fo

Re: [R] cpquery problem

2016-07-31 Thread Ross Chapman
Hi Marco Thanks for your prompt reply. First, I have been using the parse(eval()) convention because I saw it used in some example code for running cpquery, but am happy to drop this practice. I have tried running the cpquery in the debug mode, and found that it typically returns the following f