RItools0.3-4 package

Randomization Inference Tools

makeDesigns

Create a DesignOptions object from a formula and some data

makePval

Get p-value for Z-stats

model_matrix

Model matrices along with compact encodings of data availability/missi...

aggregateDesigns

Aggregate DesignOptions

alignDesignsByStrata

Align DesignOptions by Strata

balanceplot

Create a plot of the balance on variables across different stratificat...

balanceTest.make.stratwts

balanceTest helper function

balanceTest

Standardized Differences for Stratified Comparisons

balanceTestEngine

xBalance helper function

CovsAlignedToADesign-class

CovsAlignedToADesign S4 class

DesignOptions-class

DesignOptions S4 class

designToDescriptives

Generate Descriptives

DesignWeights

Create stratum weights to be associated with a DesignOptions

effectOfTreatmentOnTreated

Number of treatment clusters by stratum

flatten.xbalresult

Flattens xBalance output.

formula.xbal

Returns formula attribute of an xbal object.

harmonic

Harmonic mean

harmonic_times_mean_weight

Harmonic mean times mean of weights

HB08

Adjusted & combined differences as in Hansen & Bowers (2008)

HB08_2016

Hansen & Bowers (2008) inferentials 2016 [81e3ecf] version

identify_NM_vars

Identify vars recording not-missing (NM) info

ModelMatrixPlus-class

ModelMatrixPlus S4 class

naImpute

Impute NA's

original_units_var_formatter

Formatting suitable for stat expressed in units specific to var

plot.balancetest

Plot of balance across multiple strata

plot.xbal

Plot of balance across multiple strata

print.xbal

Printing xBalance and balanceTest Objects

scale.DesignOptions

Scale DesignOptions

sparseToVec

Convert Matrix to vector

StratumWeightedDesignOptions-class

Stratum Weighted DesignOptions

subset.xbal

Select variables, strata, and statistics from a xbal or `balancetest...

tidy.xbal

broom::tidy()/glance() methods for balanceTest() results

withOptions

Safe way to temporarily override options()

xBalance.find.goodstrats

xBalance helper function

xBalance.makepooledsd

xBalance helper function

xBalance

Standardized Differences for Stratified Comparisons

xtable.xbal

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.