Learn R Programming

scdhlm (version 0.7.3)

Estimating Hierarchical Linear Models for Single-Case Designs

Description

Provides a set of tools for estimating hierarchical linear models and effect sizes based on data from single-case designs. Functions are provided for calculating standardized mean difference effect sizes that are directly comparable to standardized mean differences estimated from between-subjects randomized experiments, as described in Hedges, Pustejovsky, and Shadish (2012) ; Hedges, Pustejovsky, and Shadish (2013) ; Pustejovsky, Hedges, and Shadish (2014) ; and Chen, Pustejovsky, Klingbeil, and Van Norman (2023) . Includes an interactive web interface.

Copy Link

Version

Install

install.packages('scdhlm')

Monthly Downloads

835

Version

0.7.3

License

GPL-3

Maintainer

James Pustejovsky

Last Published

February 25th, 2024

Functions in scdhlm (0.7.3)

MB2time

MB2 simulation time
Musser

Musser (2001)
MB1results

MB1 simulation results
MB4results

MB4 simulation results
Info_Expected_lmeAR1

Calculate expected information matrix
MB1time

MB1 simulation time
Lambert

Example 1 from Hedges, Pustejovsky, & Shadish (2012)
MB2results

MB2 simulation results
MB4time

MB4 simulation time
Laski

Example 2 from Hedges, Pustejovsky, & Shadish (2013)
Peltier

Peltier et al. (2020)
Saddler

Example 1 from Hedges, Pustejovsky, & Shadish (2013)
Rodriguez

Rodriguez & Anderson (2014)
Salazar

Salazar, et al. (2020)
Rodgers

Rodgers et al. (2021)
Ruiz

Ruiz, et al. (2020)
Schutte

Example from Pustejovsky, Hedges, & Shadish (2014)
Romaniuk

Romaniuk (2002)
Thiemann2004

Thiemann & Goldstein (2004)
Thiemann2001

Thiemann & Goldstein (2001)
g_REML

Calculates adjusted REML effect size
default_times

Calculate default initial treatment time and follow-up time.
Thorne

Thorne (2005)
batch_calc_BCSMD

A convenience function for calculating multiple design-comparable effect sizes from a dataset that compiles data from multiple single-case design studies
design_matrix

Create a design matrix for a single-case design
graph_SCD

Graph Single Case Design Data
simulate_MB4

Simulate Model MB4 from Pustejovsky, Hedges, & Shadish (2014)
lmeInfo

lmeInfo
preprocess_SCD

Clean Single Case Design Data
calc_BCSMD

A convenience function for calculating design comparable effect sizes
compare_RML_HPS

Run simulation comparing REML and HPS estimates
session_by_treatment

Calculate session-by-treatment interactions for a unique case
simulate_MB2

Simulate Model MB2 from Pustejovsky, Hedges, & Shadish (2014)
simulate.g_REML

Simulate data from a fitted g_REML object
effect_size_MB

Calculates HPS effect size
shine_scd

A shiny interface for the scdhlm package
effect_size_ABk

Calculates HPS effect size
phase_pairs

Calculate phase-pairs for a unique case
CI_g

Calculates a confidence interval for a standardized mean difference effect size
Bryant2018

Bryant et al. (2018)
DelemereDounavi

Delemere & Dounavi (2018)
AlberMorgan

Alber-Morgan, et al. (2007)
Carson

Carson (2008)
Datchuk

Datchuk (2016)
BartonArwood

Barton-Arwood, Wehby, & Falk (2005)
Anglesea

Example 2 from Hedges, Pustejovsky, & Shadish (2012)
CaseHarrisGraham

Case, Harris, and Graham (1992)
GunningEspie

Gunning & Espie (2003)