batch_calc_BCSMD | R Documentation |
Calculates standardized mean difference effect sizes for a data set including one or multiple single-case design studies using the same design (treatment reversal, multiple baseline/probe across participants, replicated multiple baseline across behaviors, or clustered multiple baseline across participants).
batch_calc_BCSMD(
data,
design,
grouping,
case,
phase,
session,
outcome,
cluster = NULL,
series = NULL,
center = 0,
round_session = TRUE,
treatment_name = NULL,
FE_base = 0,
RE_base = 0,
RE_base_2 = NULL,
FE_trt = 0,
RE_trt = NULL,
RE_trt_2 = NULL,
corStruct = "AR1",
varStruct = "hom",
A = NULL,
B = NULL,
D = NULL,
cover = 95,
bound = 35,
symmetric = TRUE,
...
)
data |
A data frame containing SCD data for which design-comparable effect sizes will be calculated. |
design |
Character string to specify whether data comes from a treatment
reversal ( |
grouping |
A variable name or list of (unquoted) variable names that uniquely identify each study. |
case |
A variable name (unquoted) that identifies unique cases within
each |
phase |
A variable name (unquoted) that identifies unique treatment phases. |
session |
A variable name (unquoted) that contains the measurement times for each data series. |
outcome |
A variable name (unquoted) that contains the outcome measurements for each data series. |
cluster |
(Optional) variable name (unquoted) that identifies the unique
clusters of cases for |
series |
(Optional) variable name (unquoted) that identifies the unique
data series for |
center |
Numeric value for the centering value for session. Default is 0. |
round_session |
Logical indicating whether to round |
treatment_name |
(Optional) character string corresponding to the name of the treatment phase. |
FE_base |
Vector of integers specifying which fixed effect terms to
include in the baseline phase. Setting |
RE_base |
Vector of integers specifying which random effect terms to
include in the baseline phase. Setting |
RE_base_2 |
Vector of integers specifying which random effect terms to
include in the baseline phase for the cluster level in clustered multiple
baseline design across participants or for the case level in replicated
multiple baseline across behaviors. Setting |
FE_trt |
Vector of integers specifying which fixed effect terms to
include in the treatment phase. Setting |
RE_trt |
Vector of integers specifying which random effect terms to
include in the treatment phase. Setting |
RE_trt_2 |
Vector of integers specifying which random effect terms to
include in the treatment phase for the cluster level in clustered multiple
baseline design across participants or for the case level in replicated
multiple baseline across behaviors. Setting |
corStruct |
(Optional) character string indicating the correlation
structure of session-level errors. Options are |
varStruct |
(Optional) character string indicating the
heteroscedasticity structure of session-level errors. Options are
|
A |
The time point immediately before the start of treatment in the hypothetical between-group design. |
B |
The time point at which outcomes are measured in the hypothetical between-group design. |
D |
Numerical indicating the treatment duration across cases. Note that
|
cover |
Confidence level. |
bound |
Numerical tolerance for non-centrality parameter in
|
symmetric |
If |
... |
further arguments. |
A data frame containing the design-comparable effect size estimate,
standard error, confidence interval, and other information, for each unique
category of grouping
variable(s).
data(Thiemann2001)
data(Thiemann2004)
datThiemann <- rbind(Thiemann2001, Thiemann2004)
# Change-in-levels model with a fixed treatment effect
batch_calc_BCSMD(data = datThiemann,
grouping = Study_ID,
design = "RMBB",
case = case, series = series, phase = treatment,
session = time, outcome = outcome,
FE_base = 0, RE_base = 0,
RE_base_2 = 0, FE_trt = 0)
# Models with linear time trends in baseline and treatment phase,
# random baseline slope at series level, fixed treatment effects
batch_calc_BCSMD(data = datThiemann,
grouping = Study_ID,
design = "RMBB",
case = case, series = series, phase = treatment,
session = time, outcome = outcome,
FE_base = c(0,1), RE_base = c(0,1),
RE_base_2 = 0, FE_trt = c(0,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.