Dear R-users

I am looking for a help in using the "deal" package.
I followed the manual and paper from the author's web site to learn it, as
shown below, but I could not figure out how to access the local and
posterior probability of the nodes in the constructed network.

library(deal)
data(ksl)
ksl.nw <- network(ksl)
ksl.prior <- jointprior(ksl.nw)
banlist <- matrix(c(5,5,6,6,7,7,9,
                           8,9,8,9,8,9,8), ncol = 2)
ksl.nw$banlist <- banlist
ksl.nw <- learn(ksl.nw, ksl, ksl.prior)$nw

According to the manual, the local prior and posterior can be accessed for
each node using localprior()
and localposterior(). However, I got null from localprior(ksl.nw$nodes[1])
and localposterior(ksl.nw$nodes[1]).
Can anyone tell me what I should do to access the local prior and posterior?

Any help would be appreciated.
Thanks in advance.

Young-Jin

        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to