Skip to content

rCausalMGM

Scalable Causal Discovery and Model Selection on Mixed Datasets with 'rCausalMGM'

v1.0 · Mar 3, 2026 · GPL-3

Description

Scalable methods for learning causal graphical models from mixed data, including continuous, discrete, and censored variables. The package implements CausalMGM, which combines a convex, score-based approach for learning an initial moralized graph with a producer-consumer scheme that enables efficient parallel conditional independence testing in constraint-based causal discovery algorithms. The implementation supports high-dimensional datasets and provides individual access to core components of the workflow, including MGM and the PC-Stable and FCI-Stable causal discovery algorithms. To support practical applications, the package includes multiple model selection strategies, including information criteria based on likelihood and model complexity, cross-validation for out-of-sample likelihood estimation, and stability-based approaches that assess graph robustness across subsamples.

Downloads

112

Last 30 days

23238th

112

Last 90 days

112

Last year

CRAN Check Status

1 WARNING
2 NOTE
11 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang WARNING
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (14 non-OK)
OK r-devel-linux-x86_64-debian-clang

*


            
OK r-devel-linux-x86_64-debian-gcc

*


            
WARNING r-devel-linux-x86_64-fedora-clang

whether package can be installed

Found the following significant warnings:
  CensoredVariable.cpp:5:5: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
  ContinuousVariable.cpp:5:2: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
See ‘/data/gannet/ripley/R/packages/tests-clang/rCausalMGM.Rcheck/00install.out’ for details.
* used C++ compiler: ‘clang version 22.1.0 (https://github.com/llvm/llvm-project 4434dabb69916856b824f68a64b029c67175e532)’
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
OK r-devel-windows-x86_64

*


            
NOTE r-oldrel-macos-arm64

installed package size

  installed size is 48.2Mb
  sub-directories of 1Mb or more:
    libs  48.0Mb
NOTE r-oldrel-macos-x86_64

installed package size

  installed size is 49.5Mb
  sub-directories of 1Mb or more:
    libs  49.3Mb
OK r-oldrel-windows-x86_64

*


            
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

WARNING 11 OK · 2 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Mar 9, 2026
WARNING r-devel-linux-x86_64-fedora-clang

whether package can be installed

Found the following significant warnings:
  CensoredVariable.cpp:5:5: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
  ContinuousVariable.cpp:5:2: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
See ‘/data/gannet/ripley/R/packages/tests-clang/rCausalMGM.Rcheck/00install.out’ for details.
* used C++ compiler: ‘clang version 22.1.0 (https://github.com/llvm/llvm-project 4434dabb69916856b824f68a64b029c
NOTE r-oldrel-macos-arm64

installed package size

  installed size is 48.2Mb
  sub-directories of 1Mb or more:
    libs  48.0Mb
NOTE r-oldrel-macos-x86_64

installed package size

  installed size is 49.5Mb
  sub-directories of 1Mb or more:
    libs  49.3Mb

Dependency Network

Dependencies Reverse dependencies Rcpp survival rCausalMGM

Version History

new 1.0 Mar 9, 2026