Learn R Programming

scdtb

The goal of ‘scdtb’ is to provide tools for the analysis of single case design data.

Installation

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")

Analyze Your Data

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:

  • Upload a CSV file to be used as the dataset for modeling.
  • View the variables available in the uploaded dataset.
  • Enter the roles played by the variables in the dataset.
  • Create a raw plot of the data.
  • Run a mixed effect model.
  • Run a crossed lag correlation analysis.
  • Run a non-overlap of all pairs computation.
  • Run a randomization test.
library(scdtb)

# Launch application
scdtb()

Copy Link

Version

Install

install.packages('scdtb')

Monthly Downloads

171

Version

0.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Mackson Ncube

Last Published

September 20th, 2024

Functions in scdtb (0.2.0)

simulate_gls_once

Simulate and Analyze Generalized Least Squares
process_phase

Process Phase Variable
swapper

Swap Cards Within a Row of a Card Matrix
sleeping_pills

Sleeping Pills and Dizziness Example
raw_plot

Plot Raw Data with Optional Phase and Condition Annotations
cross_lagged

Cross-Lagged Correlation
basic_scd

Basic Single Case Design
plot.cross_lagged

Plot Cross-Lagged Correlation Results
mixed_model_analysis

Mixed Model Analysis
print.cross_lagged

Print Method for Cross-Lagged Objects
napjack

Nap Jack: A Single Case Design Card Game
plot.replext_gls

Plot Results from Replications and Extension of GLS Simulation
nap

Non-overlap of All Pairs (NAP) Analysis
replext_gls

Replications and Extension of Generalized Least Squares Simulation
replext_pgsql

Replication and Extension of Generalized Least Squares Simulation Shiny App
replext_gls_UIParams

Generate UI Elements for GLS Simulation Parameters
deal_phase

Deal a Phase of Cards
efficacy_of_CBT

Fictional Single Case Design Efficacy of CBT Example
render_card_grid

Render a Grid of Card Images
scdtb

Single Case Design Toolbox Shiny Application
reversal_withdrawal

Reversal/withdrawal Design Example
process_cond

Process Condition Variable
randomization_test

Randomization Test for Single-Case Experiments