gRbase: A Package for Graphical Modelling in R

The 'gRbase' package provides graphical modelling features used by e.g. the packages 'gRain', 'gRim' and 'gRc'. 'gRbase' implements graph algorithms including (i) maximum cardinality search (for marked and unmarked graphs). (ii) moralization, (iii) triangulation, (iv) creation of junction tree. 'gRbase' facilitates array operations, 'gRbase' implements functions for testing for conditional independence. 'gRbase' illustrates how hierarchical log-linear models may be implemented and describes concept of graphical meta data. The facilities of the package are documented in the book by Højsgaard, Edwards and Lauritzen (2012, <doi:10.1007/978-1-4614-2299-0>) and in the paper by Dethlefsen and Højsgaard, (2005, <doi:10.18637/jss.v014.i17>). Please see 'citation("gRbase")' for citation details.

Version: 2.0.2
Depends: R (≥ 4.2.0), methods
Imports: stats4, igraph, Matrix, Rcpp (≥ 0.11.1)
LinkingTo: Rcpp (≥ 0.11.1), RcppEigen, RcppArmadillo
Suggests: testthat (≥ 2.1.0), microbenchmark, markdown, knitr
Published: 2024-06-05
DOI: 10.32614/CRAN.package.gRbase
Author: Søren Højsgaard
Maintainer: Søren Højsgaard <sorenh at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: yes
Citation: gRbase citation info
Materials: README NEWS ChangeLog
In views: GraphicalModels
CRAN checks: gRbase results


Reference manual: gRbase.pdf
Vignettes: arrays: Array operations in gRbase
graphs: Graphs with the gRbase package


Package source: gRbase_2.0.2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): gRbase_2.0.2.tgz, r-oldrel (arm64): gRbase_2.0.2.tgz, r-release (x86_64): gRbase_2.0.2.tgz, r-oldrel (x86_64): gRbase_2.0.2.tgz
Old sources: gRbase archive

Reverse dependencies:

Reverse depends: gRain, gRc, gRim
Reverse imports: BCDAG, bnmonitor, clipper, DNAmixturesLite, fgga, GGRidge, GmicR, gRaven, KinMixLite, OrdCD, rags2ridges, topologyGSA
Reverse linking to: gRain, gRim
Reverse suggests: bnclassify, bnlearn


Please use the canonical form to link to this page.