CRTspat

R-CMD-check

CRTspat is an R-package to provide easily accessible R functions for design and analysis of cluster randomized trials (CRTs), where geographically structured spillover is anticipated and where geolocations are available. It includes functions for analysing baseline data, for defining clusters by algorithm, for power and sample size calculation, and for analysis of trial outcomes. It is designed to function with outcomes that are proportions, count data, or continuous variables.

The package was developed with CRTs of malaria interventions in mind, where the spillover is assumed to arise as a result of mosquito movement, with mosquito dispersal approximated with a simple diffusion model. This does not preclude its use in other fields of research. The anticipated use cases are described in the vignettes (articles)

The package builds on the work of Multerer et al. (2021a), Multerer et al. (2021b) and Anaya-Izquierdo & Alexander(2021).

Code of Conduct

Please note that the CRTspat project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Installation

CRTspat is on CRAN and on github. It can be installed from CRAN or using:

install.packages("devtools")
library(devtools)
install_github("thomasasmith/CRTspat")

Markov chain Monte Carlo analysis using CRTspat also requires installation of JAGS