English

Py-Tetrad and RPy-Tetrad: A New Python Interface with R Support for Tetrad Causal Search

Mathematical Software 2023-08-16 v1 Artificial Intelligence Programming Languages

Abstract

We give novel Python and R interfaces for the (Java) Tetrad project for causal modeling, search, and estimation. The Tetrad project is a mainstay in the literature, having been under consistent development for over 30 years. Some of its algorithms are now classics, like PC and FCI; others are recent developments. It is increasingly the case, however, that researchers need to access the underlying Java code from Python or R. Existing methods for doing this are inadequate. We provide new, up-to-date methods using the JPype Python-Java interface and the Reticulate Python-R interface, directly solving these issues. With the addition of some simple tools and the provision of working examples for both Python and R, using JPype and Reticulate to interface Python and R with Tetrad is straightforward and intuitive.

Keywords

Cite

@article{arxiv.2308.07346,
  title  = {Py-Tetrad and RPy-Tetrad: A New Python Interface with R Support for Tetrad Causal Search},
  author = {Joseph D. Ramsey and Bryan Andrews},
  journal= {arXiv preprint arXiv:2308.07346},
  year   = {2023}
}

Comments

Causal Analysis Workshop Series (CAWS) 2023, 12 pages, 4 Figures, 2 Tables

R2 v1 2026-06-28T11:55:26.889Z