Re: [R] bnlearn and cpquery

2017-07-13 Thread Marco Scutari
aded via a namespace (and not attached): > [1] compiler_3.4.1 tools_3.4.1 > > > > > > Many thanks in advance > > > > Ross > > > > > [[alternative HTML version deleted]] > >

Re: [R] bnlearn impute problem

2017-03-17 Thread Marco Scutari
mpute() in bnlearn 4.1, so you will have 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 UNSUBSCRI

Re: [R] cpquery problem

2016-08-10 Thread Marco Scutari
u showed above, I get an average 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 Sta

Re: [R] cpquery problem

2016-08-01 Thread Marco Scutari
), evidence=list(EST ='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

Re: [R] cpquery problem

2016-07-29 Thread Marco Scutari
asses 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. Lecturer in Statistics, D

[R] bnlearn cpquery

2016-06-03 Thread Marco Scutari
ult logic sampling is the only option - likelihood weighting does not currently support unbounded intervals in the evidence. Cheers, Marco -- Marco Scutari, Ph.D. Lecturer in Statistics, Department of Statistics University of Oxford, United Kingdom [[al

Re: [R] bnlearn and TAN network

2016-02-29 Thread Marco Scutari
of showing the network after > training? 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, Departmen

Re: [R] bnlearn and TAN network

2016-02-29 Thread Marco Scutari
though it is possible in theory to 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 __

Re: [R] Query in R.

2016-02-29 Thread Marco Scutari
e the variables into intervals 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.

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

2014-11-11 Thread Marco Scutari
weight mass. Since no language trickery is involved, this works reliably. Cheers, Marco -- Marco Scutari, Ph.D. Lecturer in Statistics, Department of Statistics University of Oxford, United Kingdom __ R-help@r-project.org mailing list https

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

2014-11-10 Thread Marco Scutari
=eval(parse(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 Statistics University of Oxford, United Kingdom

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

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

2013-10-11 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

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

2013-10-11 Thread Marco Scutari
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 Kingdom __ R

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

2013-10-10 Thread Marco Scutari
bugs in cpquery(..., method = lw). 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

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 Associate, Genetics

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

2013-04-12 Thread Marco Scutari
the same network over and over. There is no way to provide a random seed to mmhc(), so the only way to perturb it is through bootstrap. Marco -- Marco Scutari, Ph.D. Research Associate, Genetics Institute (UGI) University College London (UCL), United Kingdom

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

2012-09-27 Thread Marco Scutari
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 College London (UCL), United Kingdom

Re: [R] bayesian gene network construction

2012-04-12 Thread Marco Scutari
package 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
, Marco, 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 guide

Re: [R] Prediction with Bayesian Network?

2008-07-03 Thread Marco Scutari
, 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, 25/10/07 __ R-help@r-project.org mailing list https