Description Usage Arguments Details Value Examples
View source: R/calculateeffectsizes.R
Calculates one or more effect size estimates, along with associated standard errors and confidence intervals, if available, for a singlecase data series.
1 2 3 4 5 6 7 8 9 10 11 12 13 
A_data 
vector of numeric data for A phase. Missing values are dropped. 
B_data 
vector of numeric data for B phase. Missing values are dropped. 
condition 
vector identifying the treatment condition for each observation in the series. 
outcome 
vector of outcome data for the entire series. 
baseline_phase 
character string specifying which value of

intervention_phase 
character string specifying which value of

ES 
character string or character vector specifying which effect size
index or indices to calculate. Available effect sizes are 
improvement 
character string indicating direction of improvement. Default is "increase". 
... 
further arguments used for calculating some of the effect size indices. 
confidence 
confidence level for the reported interval estimate. Set to

format 
character string specifying whether to organize the results in

Calculates one or more effect size indices
A data.frame containing the estimate, standard error, and/or confidence interval for each specified effect size.
1 2 3 4 5 6 7 8 9 10 11 12 13 14  # Using the A_data and B_data arguments
A < c(20, 20, 26, 25, 22, 23)
B < c(28, 25, 24, 27, 30, 30, 29)
calc_ES(A_data = A, B_data = B)
# Using the condition and outcome arguments
phase < c(rep("A", length(A)), rep("B", length(B)))
outcome < c(A, B)
calc_ES(condition = phase, outcome = outcome, baseline_phase = "A")
# Example from Parker & Vannest (2009)
yA < c(4, 3, 4, 3, 4, 7, 5, 2, 3, 2)
yB < c(5, 9, 7, 9, 7, 5, 9, 11, 11, 10, 9)
calc_ES(yA, yB)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.