Bayesian Network with R

前端 未结 2 1745
闹比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 03:38

    For R version 3.5 or greater, you can install Bioconductor packages using BiocManager.
    Please see: https://bioconductor.org/install.
    I installed them using the following code:

    if (!requireNamespace("BiocManager", quietly = TRUE))
        install.packages("BiocManager")
    BiocManager::install(version = "3.10")
    BiocManager::install(c("gRbase", "RBGL", "Rgraphviz", "gRain"))
    

提交回复
热议问题