R/meta_rep.R
replicate.mean.ps.Rd
This function computes confidence intervals from an original study and a follow-up study where the effect size is a paired-samples mean difference. Confidence intervals for the difference and average effect size are also computed. Equality of variances within or across studies is not assumed. A Satterthwaite adjustment to the degrees of freedom is used to improve the accuracy of the confidence intervals for the difference and average. The confidence level for the difference is 1 – 2*alpha, which is recommended for equivalence testing.
replicate.mean.ps(
alpha,
m11,
m12,
sd11,
sd12,
cor1,
n1,
m21,
m22,
sd21,
sd22,
cor2,
n2
)
alpha level for 1-alpha confidence
estimated mean for measurement 1 in original study
estimated mean for measurement 2 in original study
estimated SD for measurement 1 in original study
estimated SD for measurement 2 in original study
estimated correlation of paired measurements in orginal study
sample size in original study
estimated mean for measurement 1 in follow-up study
estimated mean for measurement 2 in follow-up study
estimated SD for measurement 1 in follow-up study
estimated SD for measurement 2 in follow-up study
estimated correlation of paired measurements in follow-up study
sample size in follow-up study
A 4-row matrix. The rows are:
Row 1 summarizes the original study
Row 2 summarizes the follow-up study
Row 3 estimates the difference in mean differences
Row 4 estimates the average mean difference
The columns are:
Estimate - mean difference estimate (single study, difference, average)
SE - standard error
df - degrees of freedom
t - t-value
p - p-value
LL - lower limit of the confidence interval
UL - upper limit of the confidence interval
Bonett DG (2021). “Design and analysis of replication studies.” Organizational Research Methods, 24(3), 513--529. ISSN 1094-4281, doi:10.1177/1094428120911088 .
replicate.mean.ps(.05, 86.22, 70.93, 14.89, 12.32, .765, 20,
84.81, 77.24, 15.68, 16.95, .702, 75)
#> Estimate SE t p LL
#> Original: 15.29 2.154344 7.097288 9.457592e-07 10.780906
#> Follow-up: 7.57 1.460664 5.182575 1.831197e-06 4.659564
#> Original - Follow-up: 7.72 2.602832 2.966000 5.166213e-03 3.332885
#> Average: 11.43 1.301416 8.782740 1.010232e-10 8.796322
#> UL df
#> Original: 19.79909 19.00000
#> Follow-up: 10.48044 74.00000
#> Original - Follow-up: 12.10712 38.40002
#> Average: 14.06368 38.40002
# Should return:
# Estimate SE t p
# Original: 15.29 2.154344 7.097288 9.457592e-07
# Follow-up: 7.57 1.460664 5.182575 1.831197e-06
# Original - Follow-up: 7.72 2.602832 2.966000 5.166213e-03
# Average: 11.43 1.301416 8.782740 1.010232e-10
# LL UL df
# Original: 10.780906 19.79909 19.00000
# Follow-up: 4.659564 10.48044 74.00000
# Original - Follow-up: 3.332885 12.10712 38.40002
# Average: 8.796322 14.06368 38.40002