library(esc)
library(metafor)Loading required package: Matrix
Loading required package: metadat
Loading required package: numDeriv
Loading the 'metafor' package (version 4.8-0). For an
introduction to the package please type: help(metafor)
library(esc)
library(metafor)Loading required package: Matrix
Loading required package: metadat
Loading required package: numDeriv
Loading the 'metafor' package (version 4.8-0). For an
introduction to the package please type: help(metafor)
paper_key <- "pinillos2012knowledgeexperimentspracitcal"
study_id <- 1
effect_id <- "s1_e1"
inputs <- list(
n_low = 77,
n_high = 67,
reported_r = -0.56,
sign_d = -1
)
inputs$n_low
[1] 77
$n_high
[1] 67
$reported_r
[1] -0.56
$sign_d
[1] -1
res_s1_e1 <- compute_effect_size(
paper_key = paper_key,
study_id = study_id,
effect_id = effect_id,
method_used = "between_rpb",
n_high = inputs$n_high,
n_low = inputs$n_low,
reported_r = inputs$reported_r,
sign_d = inputs$sign_d,
notes_on_assumptions = "Computed with esc::esc_rpb from reported Mann-Whitney r using known split Ns."
)
res_s1_e1$audit paper_key study_id effect_id design
1 pinillos2012knowledgeexperimentspracitcal 1 s1_e1 Between-Subjects
method_used computed_from_suggested
1 between_rpb other
inputs_used
1 method=between_rpb, sign_convention=d = mean(low) - mean(high), n_low=77, n_high=67, reported_r=-0.56, sign_d=-1
d v g v_g
1 -1.355124 0.03428864 -1.347954 0.03428864
notes_on_assumptions
1 Computed with esc::esc_rpb from reported Mann-Whitney r using known split Ns.
imputed_flag needs_sensitivity
1 FALSE TRUE
cat(res_s1_e1$yaml_snippet)effect_size:\n metric: SMD\n d: -1.355124252114\n v: 0.034288642158\n computed_from: other\n needs_review: false\n notes: \"method=between_rpb, sign_convention=d = mean(low) - mean(high), n_low=77, n_high=67, reported_r=-0.56, sign_d=-1\"\n
paper_key <- "pinillos2012knowledgeexperimentspracitcal"
study_id <- 1
effect_id <- "s1_e2"
inputs <- list(
n_low = 77,
n_high = 69,
reported_r = -0.39,
sign_d = -1
)
inputs$n_low
[1] 77
$n_high
[1] 69
$reported_r
[1] -0.39
$sign_d
[1] -1
res_s1_e2 <- compute_effect_size(
paper_key = paper_key,
study_id = study_id,
effect_id = effect_id,
method_used = "between_rpb",
n_high = inputs$n_high,
n_low = inputs$n_low,
reported_r = inputs$reported_r,
sign_d = inputs$sign_d,
notes_on_assumptions = "Computed with esc::esc_rpb from reported Mann-Whitney r using known split Ns."
)
res_s1_e2$audit paper_key study_id effect_id design
1 pinillos2012knowledgeexperimentspracitcal 1 s1_e2 Between-Subjects
method_used computed_from_suggested
1 between_rpb other
inputs_used
1 method=between_rpb, sign_convention=d = mean(low) - mean(high), n_low=77, n_high=69, reported_r=-0.39, sign_d=-1
d v g v_g
1 -0.8483503 0.02994449 -0.8439242 0.02994449
notes_on_assumptions
1 Computed with esc::esc_rpb from reported Mann-Whitney r using known split Ns.
imputed_flag needs_sensitivity
1 FALSE TRUE
cat(res_s1_e2$yaml_snippet)effect_size:\n metric: SMD\n d: -0.848350338028\n v: 0.029944486802\n computed_from: other\n needs_review: false\n notes: \"method=between_rpb, sign_convention=d = mean(low) - mean(high), n_low=77, n_high=69, reported_r=-0.39, sign_d=-1\"\n
paper_key <- "pinillos2012knowledgeexperimentspracitcal"
study_id <- 2
effect_id <- "s2_e1"
inputs <- list(
n_total = 78,
reported_r = 0.34,
sign_d = -1
)
inputs$n_total
[1] 78
$reported_r
[1] 0.34
$sign_d
[1] -1
res_s2_e1 <- compute_effect_size(
paper_key = paper_key,
study_id = study_id,
effect_id = effect_id,
method_used = "between_rpb",
n_total = inputs$n_total,
reported_r = inputs$reported_r,
sign_d = inputs$sign_d,
notes_on_assumptions = "Computed with esc::esc_rpb from reported Mann-Whitney r. Split group Ns were not reported; equal split (n_low=n_high=totaln/2) assumed."
)
res_s2_e1$audit paper_key study_id effect_id design
1 pinillos2012knowledgeexperimentspracitcal 2 s2_e1 Between-Subjects
method_used computed_from_suggested
1 between_rpb other
inputs_used
1 method=between_rpb, sign_convention=d = mean(low) - mean(high), n_low=39, n_high=39, n_total=78, reported_r=0.34, sign_d=-1
d v g v_g
1 -0.723077 0.05463359 -0.7159178 0.05463359
notes_on_assumptions
1 Computed with esc::esc_rpb from reported Mann-Whitney r. Split group Ns were not reported; equal split (n_low=n_high=totaln/2) assumed.
imputed_flag needs_sensitivity
1 FALSE TRUE
cat(res_s2_e1$yaml_snippet)effect_size:\n metric: SMD\n d: -0.723076997100\n v: 0.054633591947\n computed_from: other\n needs_review: false\n notes: \"method=between_rpb, sign_convention=d = mean(low) - mean(high), n_low=39, n_high=39, n_total=78, reported_r=0.34, sign_d=-1\"\n
paper_key <- "pinillos2012knowledgeexperimentspracitcal"
study_id <- 3
effect_id <- "s3_e1"
inputs <- list(
n_total = 95,
t_value = -7.6
)
inputs$n_total
[1] 95
$t_value
[1] -7.6
res_s3_e1 <- compute_effect_size(
paper_key = paper_key,
study_id = study_id,
effect_id = effect_id,
method_used = "within_smcc_t",
n_total = inputs$n_total,
t_value = inputs$t_value,
notes_on_assumptions = "Use metafor::escalc(measure='SMCC') with paired t and n_total; within-subject fallback (no matching esc method for this project metric)."
)
res_s3_e1$audit paper_key study_id effect_id design
1 pinillos2012knowledgeexperimentspracitcal 3 s3_e1 Within-Subjects
method_used computed_from_suggested
1 within_smcc_t t_df
inputs_used
1 method=within_smcc_t, sign_convention=d = mean(low) - mean(high), n_total=95, t=-7.6
d v g v_g
1 -0.7735028 0.0136753 -0.767312 0.01345727
notes_on_assumptions
1 Use metafor::escalc(measure='SMCC') with paired t and n_total; within-subject fallback (no matching esc method for this project metric).
imputed_flag needs_sensitivity
1 FALSE TRUE
cat(res_s3_e1$yaml_snippet)effect_size:\n metric: SMD\n d: -0.773502819918\n v: 0.013675297960\n computed_from: t_df\n needs_review: false\n notes: \"method=within_smcc_t, sign_convention=d = mean(low) - mean(high), n_total=95, t=-7.6\"\n
paper_key <- "pinillos2012knowledgeexperimentspracitcal"
study_id <- 4
effect_id <- "s4_e1"
inputs <- list(
n_total = 128,
reported_r = -0.40,
sign_d = -1
)
inputs$n_total
[1] 128
$reported_r
[1] -0.4
$sign_d
[1] -1
res_s4_e1 <- compute_effect_size(
paper_key = paper_key,
study_id = study_id,
effect_id = effect_id,
method_used = "between_rpb",
n_total = inputs$n_total,
reported_r = inputs$reported_r,
sign_d = inputs$sign_d,
notes_on_assumptions = "Computed with esc::esc_rpb from reported Mann-Whitney r. Split group Ns were not reported; equal split (n_low=n_high=totaln/2) assumed."
)
res_s4_e1$audit paper_key study_id effect_id design
1 pinillos2012knowledgeexperimentspracitcal 4 s4_e1 Between-Subjects
method_used computed_from_suggested
1 between_rpb other
inputs_used
1 method=between_rpb, sign_convention=d = mean(low) - mean(high), n_low=64, n_high=64, n_total=128, reported_r=-0.4, sign_d=-1
d v g v_g
1 -0.8728716 0.03422619 -0.8676656 0.03422619
notes_on_assumptions
1 Computed with esc::esc_rpb from reported Mann-Whitney r. Split group Ns were not reported; equal split (n_low=n_high=totaln/2) assumed.
imputed_flag needs_sensitivity
1 FALSE TRUE
cat(res_s4_e1$yaml_snippet)effect_size:\n metric: SMD\n d: -0.872871560944\n v: 0.034226190476\n computed_from: other\n needs_review: false\n notes: \"method=between_rpb, sign_convention=d = mean(low) - mean(high), n_low=64, n_high=64, n_total=128, reported_r=-0.4, sign_d=-1\"\n