R Interface to Python Tools for Computing Higher-Order U-Statistics

Provides an R interface to the Python package 'u-stats' < https://pypi.org/project/u-stats/> for efficient computation of higher-order U-statistics using Einstein summation notation, implementing the methods of Chen, Zhang, and Liu (2025) . The package automatically converts R objects to 'NumPy' or 'PyTorch' tensors via 'reticulate' and supports GPU acceleration when 'PyTorch' with 'CUDA' is available. Python dependencies are declared via 'reticulate' and can be installed automatically on first use. Designed for large-scale statistical estimation where numerical stability and performance are critical.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ustats")

0.1.5 by Xingyu Chen, 4 months ago


https://github.com/cxy0714/U-Statistics-R, https://pypi.org/project/u-stats/


Report a bug at https://github.com/cxy0714/U-Statistics-R/issues


Browse source code at https://github.com/cran/ustats


Authors: Xingyu Chen [aut, cre] , Ruiqi Zhang [aut] , Lin Liu [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports reticulate

Suggests knitr, rmarkdown, rstudioapi, testthat

System requirements: Python (>= 3.11); Python packages: u-stats, numpy, torch (installed automatically on first use, or via setup_ustats())


Imported by HOIF.


See at CRAN