oh, unfortunately the error is still there, btw I'm defining two groups, the first one's being 'e' and second one is 'c', that's the reason it's coded like this.
I see that in the help(esc_mean_sd) examples all the arguments are given as single integers and when those are replaced with vectors the same error is given.
library(esc)
# with standard deviations for each group
esc_mean_sd(
grp1m = 7, grp1sd = 2, grp1n = 50,
grp2m = 9, grp2sd = 3, grp2n = 60,
es.type = "g"
)
#>
#> Effect Size Calculation for Meta Analysis
#>
#> Conversion: mean and sd to effect size Hedges' g
#> Effect Size: -0.7655
#> Standard Error: 0.1984
#> Variance: 0.0394
#> Lower CI: -1.1544
#> Upper CI: -0.3766
#> Weight: 25.4015
v <- 1:10
esc_mean_sd(
grp1m = v, grp1sd = v, grp1n = v,
grp2m = v, grp2sd = v, grp2n = v,
es.type = "g"
)
#> Error in missing(grp1sd) || is.null(grp1sd) || is.na(grp1sd): 'length = 10' in coercion to 'logical(1)'