API reference

Allocation

som

Generate a selection order matrix (SOM).

fsm

Allocate units to groups with the Finite Selection Model.

fsm_batch

Allocate a new batch of units given units already allocated.

crd

Draw a completely randomized design.

scomars_probs

Conditional SCOMARS probabilities along a realized two-group path.

SelectionOrder

The order in which treatment groups take turns choosing units.

FSMResult

Outcome of an FSM allocation.

Balance and design assessment

tasmd

Target absolute standardized mean difference of one group.

tasmd_rand

TASMD of one group under one or more designs.

TasmdSummary

TASMD across repeated assignments.

asmd

Absolute standardized mean difference between two groups.

ess_rand

Randomization-based effective sample size of each design.

ess_model

Model-based effective sample size of each assignment.

love_plot

Plot imbalance per covariate for one or two assignments.

Inference

perm_test

Fisher randomization test of a sharp null hypothesis.

PermTestResult

Result of a Fisher randomization test.

Covariates and data

make_sq_inter

Add squares and pairwise products of the columns of data.

lalonde

Dehejia and Wahba's subset of the National Supported Work data.