Bayesian Network with R

前端 未结 2 1744
闹比i
闹比i 2021-02-14 03:13

I am trying to build a Bayesian network model. However I am unable to install a suitable package. Tried gRain, bnlearn and Rgraphviz for p

2条回答
  •  醉梦人生
    2021-02-14 04:01

    The packagesgraph, RBGL and Rgraphviz are not on CRAN but on bioconductor.

    To install these packages, execute

    if (!requireNamespace("BiocManager", quietly = TRUE))
        install.packages("BiocManager")
    BiocManager::install(c("graph", "RBGL", "Rgraphviz"))
    

    Then install the packages from CRAN in the usual way:

    install.packages("gRain", dependencies=TRUE)
    

    See also the gRain installation instructions.

提交回复
热议问题