In some situations where researchers would like to demonstrate
causal effects, it is hard to obtain a sample size that would allow for a
well-powered randomized controlled trial. Single case designs are experimental
designs that can be used to demonstrate causal effects with only one participant
or with only a few participants. The 'scdtb' package provides a suite of tools
for analyzing data from studies that use single case designs. The nap() function
can be used to compute the nonoverlap of all pairs as outlined by the What
Works Clearinghouse (2022) < https://ies.ed.gov/ncee/wwc/Handbooks>. The
package also offers the mixed_model_analysis() and cross_lagged() functions
which implement mixed effects models and cross lagged analyses as described
in Maric & van der Werff (2020)
The goal of ‘scdtb’ is to provide tools for the analysis of single case design data.
You can install the released version of ‘scdtb’ from CRAN:
install.packages("scdtb")
To install the development version of ‘scdtb’ from GitHub, use the devtools package:
# install.packages("devtools")
devtools::install_github("mightymetrika/scdtb")
Use the scdtb() function to launch a ‘shiny’ application which implements many of the tools in the ‘scdtb’ package.
The application has the following functionalities:
library(scdtb)
# Launch application
scdtb()