Randomization Inference Tools
Create a DesignOptions object from a formula and some data
Get p-value for Z-stats
Model matrices along with compact encodings of data availability/missi...
Aggregate DesignOptions
Align DesignOptions by Strata
Create a plot of the balance on variables across different stratificat...
balanceTest helper function
Standardized Differences for Stratified Comparisons
xBalance helper function
CovsAlignedToADesign S4 class
DesignOptions S4 class
Generate Descriptives
Create stratum weights to be associated with a DesignOptions
Number of treatment clusters by stratum
Flattens xBalance output.
Returns formula
attribute of an xbal
object.
Harmonic mean
Harmonic mean times mean of weights
Adjusted & combined differences as in Hansen & Bowers (2008)
Hansen & Bowers (2008) inferentials 2016 [81e3ecf] version
Identify vars recording not-missing (NM) info
ModelMatrixPlus S4 class
Impute NA's
Formatting suitable for stat expressed in units specific to var
Plot of balance across multiple strata
Plot of balance across multiple strata
Printing xBalance and balanceTest Objects
Scale DesignOptions
Convert Matrix to vector
Stratum Weighted DesignOptions
Select variables, strata, and statistics from a xbal
or `balancetest...
broom::tidy()
/glance()
methods for balanceTest()
results
Safe way to temporarily override options()
xBalance helper function
xBalance helper function
Standardized Differences for Stratified Comparisons
An xtable
method for xbal
and balancetest
objects
Tools for randomization-based inference. Current focus is on the d^2 omnibus test of differences of means following Hansen and Bowers (2008) <doi:10.1214/08-STS254> . This test is useful for assessing balance in matched observational studies or for analysis of outcomes in block-randomized experiments.