Learn R Programming

DRPT (version 1.1)

Density Ratio Permutation Test

Description

Implementation of the Density Ratio Permutation Test for testing the goodness-of-fit of a hypothesised ratio of two densities, as described in Bordino and Berrett (2025) .

Copy Link

Version

Install

install.packages('DRPT')

Monthly Downloads

121

Version

1.1

License

MIT + file LICENSE

Maintainer

Alberto Bordino

Last Published

July 7th, 2025

Functions in DRPT (1.1)

DRPT

A function implementing the Density Ratio Permutation Test based on an estimate of the shifted-MMD.
discrete.DRPT

A function implementing the discrete version of the DRPT for discrete data with finite support.
starSampler

A function implementing the star-sampler for the DRPT.
discreteT

Compute test statistics for the DRPT in discrete settings.
shiftedMMD

A function computing an estimate of the shifted-MMD.