Re: [R] bnlearn and cpquery

2017-07-13 Thread Marco Scutari
attached): > [1] compiler_3.4.1 tools_3.4.1 > > > > > > Many thanks in advance > > > > Ross > > > > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To U

Re: [R] bnlearn impute problem

2017-03-17 Thread Marco Scutari
ve to upgrade to use it. Cheers, Marco -- Marco Scutari, Ph.D. Lecturer in Statistics, Department of Statistics University of Oxford, United Kingdom __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman

Re: [R] cpquery problem

2016-08-10 Thread Marco Scutari
an average of ~= 13 without considering FFB. If I assume FFB is positive, then I can easily see E(y) ~= 15 and E(y) - 1.96 * 0.96 s.d. ~= 13.5. So ABW < 11 has zero or almost zero probability mass. Cheers, Marco -- Marco Scutari, Ph.D. Lecturer in Statistics, Department of Statistic

Re: [R] cpquery problem

2016-08-01 Thread Marco Scutari
7;y', TR = c(9, max(data$TR)), BU = c(15819, max(data$BU)), RF = c(2989, max(data$RF)), n=10^6, method = "lw") 3) look at the parameters in your fitted network and diagnose why this is happening. Cheers, Marco -- Marco Scutari, Ph.D. Lecturer in Statistics, Department

Re: [R] cpquery problem

2016-07-29 Thread Marco Scutari
that these classes should both typically > return a value for ABW that is very much higher than the threshold value. That may be, but much depends on the specific sample the model was fitted from. How does the fitted network look like? Cheers, Marco -- Marco Scutari, Ph.D. L

[R] bnlearn cpquery

2016-06-03 Thread Marco Scutari
rvals in the evidence. Cheers, Marco -- Marco Scutari, Ph.D. Lecturer in Statistics, Department of Statistics University of Oxford, United Kingdom [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIB

Re: [R] bnlearn and TAN network

2016-02-29 Thread Marco Scutari
aining? TAN does not do any sort of feature selection, so all the nodes should be there. As for "showing the network after training", what kind of plot are you looking for? Cheers, Marco -- Marco Scutari, Ph.D. Lecturer in Statistics, Department of S

Re: [R] bnlearn and TAN network

2016-02-29 Thread Marco Scutari
produce a graph + barplots plot from Rgraphviz. I have never managed to make it work, though. Cheers, Marco -- Marco Scutari, Ph.D. Lecturer in Statistics, Department of Statistics University of Oxford, United Kingdom __ R-help@r-project.org mai

Re: [R] Query in R.

2016-02-29 Thread Marco Scutari
als first. Cheers, Marco -- Marco Scutari, Ph.D. Lecturer in Statistics, Department of Statistics University of Oxford, United Kingdom __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEAS

Re: [R] Strange error while passing string as an argument to the function in bnlearn package

2014-11-11 Thread Marco Scutari
ot;method")= chr "lw" To compute P(A = a | whatever you conditioned on), just sum the corresponding weights over the total weight mass. Since no language trickery is involved, this works reliably. Cheers, Marco -- Marco Scutari, Ph.D. Lecturer in Statistics, Department of Sta

Re: [R] Strange error while passing string as an argument to the function in bnlearn package

2014-11-10 Thread Marco Scutari
e(text="(M=='s')")), evidence=list(lag1.M1='s'), method = "lw") passing str2 as a list. Cheers, Marco -- Marco Scutari, Ph.D. Lecturer in Statistics, Department of S

Re: [R] NA/NaN values in bnlearn package R

2014-06-09 Thread Marco Scutari
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-proje

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

2013-10-11 Thread Marco Scutari
lihood weighting method will work. > Don't > hesitate to correct me if I'm wrong. >From your description, likelihood weighting should be fine. Cheers, Marco -- Marco Scutari, Ph.D. Research Associate, Genetics Institute (UGI) University College London (UCL), United Ki

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

2013-10-11 Thread Marco Scutari
g variables. 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

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

2013-10-10 Thread Marco Scutari
do so I suggest you should install the latest bugfix snapshot from bnlearn.com to avoid a few other bugs in cpquery(..., method = "lw"). Cheers, Marco -- Marco Scutari, Ph.D. Research Associate, Genetics Institute (UGI) University College London (UCL), United Kingdom __

Re: [R] Cross validation for Naive Bayes and Bayes Networks

2013-04-15 Thread Marco Scutari
to reassemble observed and predicted class labels and compute your metrics. > I also tried the *e1071* package, but I could not find a way to do > cross-validation. You might be able to trick the tune() function to do it, but I am not sure. Marco -- Marco Scutari, Ph.D. Research Assoc

Re: [R] bnlearn: how to compute boot strength with mmhc and a blacklist

2013-04-12 Thread Marco Scutari
different network every time it is run on > the same data set? This is not surprising, because mmhc() does not have a "start" argument, so it's starting from the same network over and over. There is no way to provide a random seed to mmhc(), so the only way

Re: [R] Specifying a response variable in a Bayesian network

2012-09-27 Thread Marco Scutari
ne of the BN classifiers in bnlearn, naive.bayes()/tree.bayes(), which handle the concept of a response variable more naturally than general-purpose BNs. Hope it helps, Marco -- Marco Scutari, Ph.D. Research Associate, Genetics Institute (UGI) University C

Re: [R] bayesian gene network construction

2012-04-12 Thread Marco Scutari
kage from Korbinian Strimmer targets exactly that kind of appilication: http://cran.r-project.org/web/packages/GeneNet/ Regards, Marco -- Marco Scutari, Ph.D. Research Associate, Genetics Institute (UGI) University College London (UCL), United Kingdom ___

Re: [R] Bayesian Belief Networks

2010-12-23 Thread Marco Scutari
rco, author and maintainer of bnlearn. -- Marco Scutari, Ph.D. Student Department of Statistical Sciences University of Padova, Italy __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gui

Re: [R] Prediction with Bayesian Network?

2008-07-03 Thread Marco Scutari
ent you have to compute the (conditional) probabilities by hand. Best Regards, Marco Scutari author and maintainer of bnlearn -- Marco Scutari Ph.D. Student, Department of Statictical Sciences University of Padova "Facts don't care if you feel good about them." Slashdot,