Re: [R] Using "cpquery" function from bnlearn package inside loop

2013-10-11 Thread Ryan Morrison
Hi Marco, Thanks for the clarification. For my immediate purposes I think using the likelihood weighting method will suffice. I'm calculating conditional probabilities based on a single instantiation each time I use the function. The evidence I use for instantiation changes for each i+1 in my l

Re: [R] Using "cpquery" function from bnlearn package inside loop

2013-10-11 Thread Ryan Morrison
Thanks Marco, The cpquery function is definitely easier to use given that my evidence is contained in lists. Thanks for your help! --- Ryan Ryan Morrison, PE PhD Candidate University of New Mexico Department of Civil Engineering Centennial Engineering Center, Room 3057 Phone: 505-633-5506 Ema

Re: [R] Using "cpquery" function from bnlearn package inside loop

2013-10-11 Thread Marco Scutari
Dear Ryan, On 11 October 2013 20:44, Ryan Morrison wrote: > Thanks for the clarification. For my immediate purposes I think using the > likelihood > weighting method will suffice. I'm calculating conditional probabilities > based on a > single instantiation each time I use the function. The evi

Re: [R] Using "cpquery" function from bnlearn package inside loop

2013-10-11 Thread Marco Scutari
Dear Ryan, On 11 October 2013 16:50, Ryan Morrison wrote: > The cpquery function is definitely easier to use given that my evidence is > contained in lists. For the record, this is not a general solution to the bug. It's true that likelihood weighting (method = "lw") is easier to use in a progra

Re: [R] Using "cpquery" function from bnlearn package inside loop

2013-10-10 Thread Marco Scutari
Dear Ryan, On 9 October 2013 21:26, Ryan Morrison wrote: > I'm attempting to use the bnlearn package to calculate conditional > probabilities, and > I'm running into a problem when the "cpquery" function is used within a loop. > I've > created an example, shown below, using data included with t

[R] Using "cpquery" function from bnlearn package inside loop

2013-10-09 Thread Ryan Morrison
Hi everyone, I'm attempting to use the bnlearn package to calculate conditional probabilities, and I'm running into a problem when the "cpquery" function is used within a loop. I've created an example, shown below, using data included with the package. When using the cpquery function in a loop

[R] Using "cpquery" function from bnlearn package inside loop

2013-10-09 Thread Ryan Morrison
Hi everyone, I'm attempting to use the bnlearn package to calculate conditional probabilities, and I'm running into a problem when the "cpquery" function is used within a loop. I've created an example, shown below, using data included with the package. When using the cpquery function in a loop