RCT_estimators is used as a function for RCT_analysis function to provide estimators for RCT analysis

RCT_estimators(
  control_pre_test,
  control_post_test,
  treatment_pre_test,
  treatment_post_test,
  SESOI_lower = 0,
  SESOI_upper = 0,
  na.rm = FALSE
)

Arguments

control_pre_test

Numeric vector containing Control Pre-test observations

control_post_test

Numeric vector containing Control Post-test observations

treatment_pre_test

Numeric vector containing Treatment Pre-test observations

treatment_post_test

Numeric vector containing Treatment Post-test observations

SESOI_lower

Lower smallest effect size of interest threshold

SESOI_upper

Upper smallest effect size of interest threshold

na.rm

Should NAs be removed? Default is FALSE

Value

Named numeric vector

Examples

set.seed(1666) RCT_estimators( control_pre_test = rnorm(20, 100, 10), control_post_test = rnorm(20, 105, 10), treatment_pre_test = rnorm(20, 100, 10), treatment_post_test = rnorm(20, 120, 10), SESOI_lower = -5, SESOI_upper = 5 )
#> SESOI lower SESOI upper #> -5.0000000 5.0000000 #> SESOI range Control Group Pre-test mean #> 10.0000000 102.8294629 #> Control Group Pre-test SD Control Group Post-test mean #> 9.3281144 105.7057926 #> Control Group Post-test SD Treatment Group Pre-test mean #> 8.7559030 105.0229491 #> Treatment Group Pre-test SD Treatment Group Post-test mean #> 13.6142924 123.2754014 #> Treatment Group Post-test SD Pre-test pooled SD #> 11.5746498 11.6696760 #> Pre-test Group difference Post-test Group difference #> 2.1934862 17.5696088 #> Control Group Change mean Control Group Change SD #> 2.8763298 10.5900885 #> Control Group Cohen's d Control Group Change to SESOI #> 0.2464790 0.2876330 #> Control Group Change SD to SESOI Control Group pLower #> 1.0590088 0.2330646 #> Control Group pEquivalent Control Group pHigher #> 0.3453383 0.4215971 #> Treatment Group Change mean Treatment Group Change SD #> 18.2524524 19.6781802 #> Treatment Group Cohen's d Treatment Group Change to SESOI #> 1.5640925 1.8252452 #> Treatment Group Change SD to SESOI Treatment Group pLower #> 1.9678180 0.1259646 #> Treatment Group pEquivalent Treatment Group pHigher #> 0.1284181 0.7456174 #> Effect Cohen's d Systematic effect #> 1.4519352 15.3761226 #> Random effect Systematic effect to SESOI #> 16.5855601 1.5376123 #> SESOI to Random effect pLower #> 0.6029341 0.1171214 #> pEquivalent pHigher #> 0.1523848 0.7304938