Between-Case Standardized Mean Difference
Source:R/between_smd.R
, R/print.sc_bcsmd.R
between_smd.Rd
Calculates a standardized mean difference from a multilevel model as described in Pustejovsky et al. (2014)
Usage
between_smd(data, ...)
# S3 method for sc_bcsmd
print(x, digits = 2, ...)
References
Pustejovsky, J. E., Hedges, L. V., & Shadish, W. R. (2014). Design-Comparable Effect Sizes in Multiple Baseline Designs: A General Modeling Framework. Journal of Educational and Behavioral Statistics, 39(5), 368–393. https://doi.org/10.3102/1076998614547577
Examples
des <- design(
n = 150,
phase_design = list(A = 10, B = 10, A2 = 10, B2 = 10, c = 10),
level = list(B = 1, A2 = 0, B2 = 1, c = 1)
)
study <- random_scdf(des)
between_smd(study)
#> Between-Case Standardized Mean Difference
#>
#> Effect BC-SMD Only random intercept
#> phaseB 2.04 908.77
#> phaseA2 2.00 890.04
#> phaseB2 4.06 1808.80
#> phasec 5.96 2660.49
model <- hplm(study, slope = FALSE, contrast_level = "preceding")
between_smd(model)
#> Between-Case Standardized Mean Difference
#>
#> Effect BC-SMD Only random intercept
#> phaseB 2.04 913.71
#> phaseA2 0.02 7.46
#> phaseB2 2.07 924.77
#> phasec 2.04 912.69