Skip to content

causalBatch

Causal Batch Effects

v1.3.0 · Jan 7, 2025 · GPL-3

Description

Software which provides numerous functionalities for detecting and removing group-level effects from high-dimensional scientific data which, when combined with additional assumptions, allow for causal conclusions, as-described in our manuscripts Bridgeford et al. (2024) <doi:10.1101/2021.09.03.458920> and Bridgeford et al. (2023) <doi:10.48550/arXiv.2307.13868>. Also provides a number of useful utilities for generating simulations and balancing covariates across multiple groups/batches of data via matching and propensity trimming for more than two groups.

Downloads

CRAN

246

Last 30 days

17405th

686

Last 90 days

2.6K

Last year

Trend: +30.2% (30d vs prior 30d)

r2u CRAN

11

Last 30 days

29

Last 90 days

134

Last year

Trend: -31.3% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 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 OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 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 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 27, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 20, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [27s/36s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional 
...[truncated]...
hing.R:106:3'): VM throws warning when samples retained is low ──
  Expected `cb.align.vm_trim(sim.low$Ts, sim.low$Xs, retain.ratio = 0.8)` to throw a warning.
  
  [ FAIL 1 | WARN 1 | SKIP 3 | PASS 47 ]
  Error:
  ! Test failures.
  Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 17, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 16, 2026
ERROR r-devel-linux-x86_64-fedora-gcc

tests

Running ‘testthat.R’ [68s/78s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional 
...[truncated]...
lure ('test-causal_ccombat.R:70:3'): AIPW cComBat raises warning when few samples are retained ──
  Expected `cb.correct.aipw_cComBat(...)` to throw a warning.
  
  [ FAIL 1 | WARN 1 | SKIP 3 | PASS 47 ]
  Error:
  ! Test failures.
  Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Packages required but not available: 'sva', 'genefilter'

Package suggested but not available for checking: ‘ggpubr’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 1, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 28, 2026
ERROR r-oldrel-windows-x86_64

tests

Running 'testthat.R' [44s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test
...[truncated]...
hing.R:106:3'): VM throws warning when samples retained is low ──
  Expected `cb.align.vm_trim(sim.low$Ts, sim.low$Xs, retain.ratio = 0.8)` to throw a warning.
  
  [ FAIL 1 | WARN 1 | SKIP 3 | PASS 47 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 21, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 16, 2026
ERROR r-devel-linux-x86_64-fedora-gcc

tests

Running ‘testthat.R’ [74s/219s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional
...[truncated]...
══════
  ── Failure ('test-causal_cdcorr.R:122:3'): raises warning when few samples are retained ──
  Expected `cb.detect.caus_cdcorr(...)` to throw a warning.
  
  [ FAIL 1 | WARN 1 | SKIP 3 | PASS 47 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 10, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 9, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘MatchIt’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies cdcsis sva MatchIt nnet dplyr magrittr genefilter BiocParallel causalBatch

Version History

5 tracked
new 1.3.0 Mar 10, 2026
updated 1.3.0 ← 1.2.0 diff Jan 6, 2025
updated 1.2.0 ← 1.1 diff Feb 29, 2024
updated 1.1 ← 1.0 diff Feb 12, 2024
new 1.0 Jan 23, 2024