Learn R Programming

MATES (version 0.1)

Multi-View Aggregated Two Sample Tests

Description

Implements the Multi-view Aggregated Two-Sample (MATES) test, a powerful nonparametric method for testing equality of two multivariate distributions. The method constructs multiple graph-based statistics from various perspectives (views) including different distance metrics, graph types (nearest neighbor graphs, minimum spanning trees, and robust nearest neighbor graphs), and weighting schemes. These statistics are then aggregated through a quadratic form to achieve improved statistical power. The package provides both asymptotic closed-form inference and permutation-based testing procedures. For methodological details, see Cai and others (2026+) .

Copy Link

Version

Install

install.packages('MATES')

Version

0.1

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Zexi Cai

Last Published

January 22nd, 2026

Functions in MATES (0.1)

MATES_test

MATES test statistic with pre-computed view matrices
optimalwithrank_curnode

This function is used in 'P_Knear_rank' #' Compute k-rNNG graph
degree_distribution

Auxiliary function to compute rank matrix
rank_mats

Compute rank matrix
asy_cov

Find the permutation covariance
asy_mean

Find the permutation mean
MATES-package

MATES
MATES

MATES test statistic with two samples (recommended for general use)
P_Knear_rank

Compute k-rNNG graph
Out_direct

Auxiliary function to compute rank matrix
Rise_Rank

RISE rank matrix