Skip to contents

Tests

The user-facing test and per-representation diagnostic.

riposte_test()
Combined randomization-based test of the sharp null
riposte_components()
Per-representation p-values, covariance, and condition number

Outcome representations

The views of the outcome that get combined; an open, user-supplied set.

riposte_reps_default()
The default set of outcome representations
riposte_reps_proposal()
The proposal's representation set (raw tanh)
riposte_mean_dist()
Mean pairwise L1 distance of each unit to the others (within a block)
riposte_mean_rank_dist()
Mean pairwise L1 distance computed on the within-block ranks
riposte_max_dist()
Maximum distance of each unit to the block extremes
riposte_rank()
Mid-ranks of a block's outcomes
riposte_huber()
Huber's psi of a block's outcomes, standardised by the block's MAD
riposte_tanh()
Bounded (tanh) transform of a block's outcomes, robustly standardised
riposte_stephenson_scores()
Stephenson rank scores
riposte_stephenson_reps()
Stephenson rank-score representations at several tuning values
riposte_poly_scores()
Polynomial rank scores
riposte_poly_reps()
Polynomial rank-score representations at several tuning values

Combination screen

Choosing or blending the quadratic and the Cauchy from the conditioning of the covariance.

riposte_screen()
Choose (or blend) the combination from the conditioning of Sigma
riposte_screen_control()
Control parameters for the quadratic-vs-Cauchy screen

Covariance adjustment

Controls-only learners, refit inside every re-randomization.

riposte_adjust()
Covariance-adjustment specification
riposte_ridge_learner()
Controls-only ridge learner
riposte_lm_learner()
Controls-only ordinary-least-squares learner

Building blocks

The permutation engine and the closed-form moments behind the tests.

riposte_sw_moments()
Closed-form Strasser-Weber permutation mean and covariance
riposte_block_draws()
Within-block re-randomizations preserving each block's treated count
riposte_score_matrix()
Build the within-block-centred score matrix from representations
riposte_midp()
Mid-p permutation p-values
riposte_acat_term()
Pole-aware Cauchy (ACAT) transform of p-values
riposte_truncated_cauchy()
Truncated Cauchy combination of p-values