The gswdesign
R package provides wrappers for the Julia package GSWDesign, which is a fast implementation of the Gram-Schmidt Walk for balancing covariates in randomized experiments. The Gram-Schmidt Walk design allows experimenters to control the trade-off between the amount of covariate balance and robustness provided by treatment assignment. Refer to Harshaw et al (2020) "Balancing covariates in randomized experiments using the Gram-Schmidt Walk" for an indepth discussion.
First, make sure to have Julia version 1.0 or later installed and added to your path. The easiest way to do so on macOS is to use Homebrew and call:
brew cask install julia
Once Julia is installed, you can install gswdesign
from Github using devtools:
if (!require("devtools")) install.packages("devtools")
devtools::install_github("fsavje/gswdesign-R")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.