causalOT
Optimal Transport Weights for Causal Inference
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
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)
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.
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.
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.
installed package size
installed size is 7.4Mb
sub-directories of 1Mb or more:
R 2.3Mb
libs 4.5Mb
package dependencies
Package suggested but not available for checking: ‘rkeops’
installed package size
installed size is 7.5Mb
sub-directories of 1Mb or more:
R 2.3Mb
libs 4.5Mb
package dependencies
Package suggested but not available for checking: 'rkeops'
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
package dependencies
Package suggested but not available for checking: ‘rkeops’
installed package size
installed size is 7.5Mb
sub-directories of 1Mb or more:
R 2.3Mb
libs 4.5Mb
package dependencies
Package suggested but not available for checking: 'rkeops'
ERROR 5 OK · 2 NOTE · 0 WARNING · 7 ERROR · 0 FAILURE Mar 10, 2026
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
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
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
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
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
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
package dependencies
Package suggested but not available for checking: ‘rkeops’
installed package size
installed size is 7.5Mb
sub-directories of 1Mb or more:
R 2.3Mb
libs 4.5Mb
package dependencies
Package suggested but not available for checking: 'rkeops'