Skip to content

causalOT

Optimal Transport Weights for Causal Inference

v1.0.4 · Mar 10, 2026 · GPL (== 3.0)

Description

Uses optimal transport distances to find probabilistic matching estimators for causal inference. These methods are described in Dunipace, Eric (2021) <doi:10.48550/arXiv.2109.01991>. The package will build the weights, estimate treatment effects, and calculate confidence intervals via the methods described in the paper. The package also supports several other methods as described in the help files.

Downloads

665

Last 30 days

5649th

1.4K

Last 90 days

4.2K

Last year

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

CRAN Check Status

7 NOTE
7 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 NOTE
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 NOTE
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 (8 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

compiled code

File ‘causalOT/libs/causalOT.so’:
  Found non-API call to R: ‘R_UnboundValue’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
NOTE r-devel-linux-x86_64-debian-gcc

compiled code

File ‘causalOT/libs/causalOT.so’:
  Found non-API call to R: ‘R_UnboundValue’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
NOTE r-devel-windows-x86_64

compiled code

File 'causalOT/libs/x64/causalOT.dll':
  Found non-API call to R: 'R_UnboundValue'

Compiled code should not call non-API entry points in R.

See 'Writing portable packages' in the 'Writing R Extensions' manual,
and section 'Moving into C API compliance' for issues with the use of
non-API entry points.
NOTE r-oldrel-macos-arm64

installed package size

installed size is  7.4Mb
  sub-directories of 1Mb or more:
    R      2.3Mb
    libs   4.5Mb
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘rkeops’
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  7.5Mb
  sub-directories of 1Mb or more:
    R      2.3Mb
    libs   4.5Mb
NOTE r-oldrel-windows-x86_64

package dependencies

Package suggested but not available for checking: 'rkeops'
NOTE r-patched-linux-x86_64

compiled code

File ‘causalOT/libs/causalOT.so’:
  Found non-API call to R: ‘R_UnboundValue’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 17, 2026
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘rkeops’
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  7.5Mb
  sub-directories of 1Mb or more:
    R      2.3Mb
    libs   4.5Mb
NOTE r-oldrel-windows-x86_64

package dependencies

Package suggested but not available for checking: 'rkeops'
ERROR 5 OK · 2 NOTE · 0 WARNING · 7 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-linux-x86_64-debian-clang

tests

Running ‘testthat.R’ [69s/90s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(causalOT)
  > 
  > test_check("causalOT")
  Saving _problems/test-SCM-28.R
  [ FAIL 1 | WARN 710 | SKIP 53 | PASS 120 ]

...[truncated]...
──────────────────
  Expected `scm$.__enclos_env__$private$solver$GetParams()$polish` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 1 | WARN 710 | SKIP 53 | PASS 120 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-devel-linux-x86_64-fedora-gcc

tests

Running ‘testthat.R’ [120s/258s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(causalOT)
  > 
  > test_check("causalOT")
  Saving _problems/test-SCM-28.R
  [ FAIL 1 | WARN 710 | SKIP 53 | PASS 120 
...[truncated]...
──────────────────
  Expected `scm$.__enclos_env__$private$solver$GetParams()$polish` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 1 | WARN 710 | SKIP 53 | PASS 120 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [53s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(causalOT)
  > 
  > test_check("causalOT")
  Saving _problems/test-SCM-28.R
  [ FAIL 1 | WARN 710 | SKIP 53 | PASS 120 ]
  
 
...[truncated]...
──────────────────
  Expected `scm$.__enclos_env__$private$solver$GetParams()$polish` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 1 | WARN 710 | SKIP 53 | PASS 120 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-patched-linux-x86_64

tests

Running ‘testthat.R’ [67s/84s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(causalOT)
  > 
  > test_check("causalOT")
  Saving _problems/test-SCM-28.R
  [ FAIL 1 | WARN 710 | SKIP 53 | PASS 120 ]

...[truncated]...
──────────────────
  Expected `scm$.__enclos_env__$private$solver$GetParams()$polish` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 1 | WARN 710 | SKIP 53 | PASS 120 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-linux-x86_64

tests

Running ‘testthat.R’ [66s/76s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(causalOT)
  > 
  > test_check("causalOT")
  Saving _problems/test-SCM-28.R
  [ FAIL 1 | WARN 710 | SKIP 53 | PASS 120 ]

...[truncated]...
──────────────────
  Expected `scm$.__enclos_env__$private$solver$GetParams()$polish` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 1 | WARN 710 | SKIP 53 | PASS 120 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-windows-x86_64

tests

Running 'testthat.R' [51s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(causalOT)
  > 
  > test_check("causalOT")
  Saving _problems/test-SCM-28.R
  [ FAIL 1 | WARN 710 | SKIP 53 | PASS 120 ]
  
 
...[truncated]...
──────────────────
  Expected `scm$.__enclos_env__$private$solver$GetParams()$polish` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 1 | WARN 710 | SKIP 53 | PASS 120 ]
  Error:
  ! Test failures.
  Execution halted
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘rkeops’
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  7.5Mb
  sub-directories of 1Mb or more:
    R      2.3Mb
    libs   4.5Mb
ERROR r-oldrel-windows-x86_64

package dependencies

Package suggested but not available for checking: 'rkeops'

Dependency Network

Dependencies Reverse dependencies CBPS ggplot2 lbfgsb3c loo Matrix matrixStats osqp R6 Rcpp rlang sandwich torch causalOT

Version History

new 1.0.4 Mar 10, 2026
updated 1.0.4 ← 1.0.3 diff Mar 9, 2026
updated 1.0.3 ← 1.0.2 diff Feb 14, 2026
updated 1.0.2 ← 1.0.1 diff Feb 17, 2024
updated 1.0.1 ← 1.0 diff Nov 29, 2023
updated 1.0 ← 0.1.2 diff Nov 27, 2023
updated 0.1.2 ← 0.1 diff Sep 3, 2022
new 0.1 Mar 13, 2022