Tools for randomization-based inference. Current focus is on the d^2 omnibus test of differences of means following Hansen and Bowers (2008) useful for assessing balance in matched observational studies or for analysis of outcomes in block-randomized experiments.
RItools package implements useful functions for implementing
randomization inference based statistical tests. The package provides tools
for testing balance of observed covariates in observational studies using the
Ben B. Hansen and Jake Bowers (2008). Covariate balance in simple, stratified and clustered comparative studies. Statistical Science. 23(2):219--236.
See the online documentation for
xbalance for more details.
The package also provides outcome analysis of simple or block randomized
trials (or matched observational studies) based on user defined models and
test statistics. See the online documentation of
parameterizedRandomizationDistribution for more details.
RItools is available on CRAN:
These directions will install development version in a way that will not
overwrite an existing installation of
RItools from CRAN. You will will need
to know the name of the branch you wish to install.
master: The current released version of
RItoolsand a holding place for small bug changes.
randomization-distribution: Experimental work on outcome analysis using user defined models of effects and test statistics. This branch contains the tools necessary to compute estimated treatment effects, p-values, and confidence intervals (regions) using direct simulation from the randomization distribution implied by the design of the experiment (or using the exact randomization distribution if the number of possible ways for the treatment to be assigned is relatively small).
Install and load the
> install.packages("devtools") > library("devtools")
Next, pick a location to install the package. For example, create a
~ is short for my home directory on a
UNIX system). For this session, we will set the library path to look in this
location first and install the package there:
> .libPaths("~/R/RItools.experimental/") # <- your path here > install_github("markmfredrickson/RItools")
install_github will load the package automatically. To
install from a branch of the repository, e.g. the
randomization-distribution branch, instead use
> install_github("markmfredrickson/[email protected]")
In the future, if you wish load the downloaded version of
RItools in a new
session you can use this one-liner:
> library("RItools", lib.loc = "~/R/RItools.experimental") # <- your path here
CHANGES IN RITOOLS VERSION 0.1-16
This is a maintenance release.
CHANGES IN RITOOLS VERSION 0.1-15
This is a maintenance release.
data.tablerelated global options (#69)
CHANGES IN RITOOLS VERSION 0.1-14
This version was submitted to CRAN prematurely and ultimately was not released.
CHANGES IN RITOOLS VERSION 0.1-13
xBalance, you can now specify strata "foo" and "bar" by including "+ strata(foo) + strata(bar)" in the
fmlaargument, without need to give a separate
strataargument (eg `strata=list(foo=~foo, bar=~bar)).
CHANGES IN RITOOLS VERSION 0.1-12
balanceplotfunction to handle plotting matrices, not just
xBalanceallows modifying the data after per-stratum centering.
CHANGES in RItools v. 0.1-11
DEPRECATED & DEFUNCT