
Example Chapter Becker Aloe Cheung
Becker Aloe Cheung
2026-11-20
Becker-Aloe-Cheung-2019.RmdFor methodological background on model-based meta-analysis, see Becker and Aloe (2019).
We load the necessary packages as well as the data set for the
example. Because for this example we are using only complete data we
remove the the two studies with NA (i.e., Study 6 and Study
17).
library(mars)
becker09 <- na.omit(becker09) # ommiting studies with NA
becker09
#> ID N Team Cognitive_Performance Somatic_Performance
#> 1 1 142 I -0.55 -0.48
#> 2 3 37 I 0.53 -0.12
#> 4 10 14 I -0.39 -0.17
#> 6 22 100 I 0.23 0.08
#> 7 26 51 T -0.52 -0.43
#> 8 28 128 T 0.14 0.02
#> 9 36 70 T -0.01 -0.16
#> 10 38 30 I -0.27 -0.13
#> Selfconfidence_Performance Somatic_Cognitive Selfconfidence_Cognitive
#> 1 0.66 0.47 -0.38
#> 2 0.03 0.52 -0.48
#> 4 0.19 0.21 -0.54
#> 6 0.51 0.45 -0.29
#> 7 0.16 0.57 -0.18
#> 8 0.13 0.56 -0.53
#> 9 0.42 0.62 -0.46
#> 10 0.15 0.63 -0.68
#> Selfconfidence_Somatic
#> 1 -0.46
#> 2 -0.40
#> 4 -0.43
#> 6 -0.44
#> 7 -0.26
#> 8 -0.27
#> 9 -0.54
#> 10 -0.71Next, we create a list, which will be imputed in our other functions.
becker09_list <- df_to_corr(becker09,
variables = c('Cognitive_Performance',
'Somatic_Performance',
'Selfconfidence_Performance',
'Somatic_Cognitive',
'Selfconfidence_Cognitive',
'Selfconfidence_Somatic'),
ID = 'ID')
becker09_list
#> $`1`
#> Performance Cognitive Somatic Selfconfidence
#> Performance 1.00 -0.55 -0.48 0.66
#> Cognitive -0.55 1.00 0.47 -0.38
#> Somatic -0.48 0.47 1.00 -0.46
#> Selfconfidence 0.66 -0.38 -0.46 1.00
#>
#> $`3`
#> Performance Cognitive Somatic Selfconfidence
#> Performance 1.00 0.53 -0.12 0.03
#> Cognitive 0.53 1.00 0.52 -0.48
#> Somatic -0.12 0.52 1.00 -0.40
#> Selfconfidence 0.03 -0.48 -0.40 1.00
#>
#> $`10`
#> Performance Cognitive Somatic Selfconfidence
#> Performance 1.00 -0.39 -0.17 0.19
#> Cognitive -0.39 1.00 0.21 -0.54
#> Somatic -0.17 0.21 1.00 -0.43
#> Selfconfidence 0.19 -0.54 -0.43 1.00
#>
#> $`22`
#> Performance Cognitive Somatic Selfconfidence
#> Performance 1.00 0.23 0.08 0.51
#> Cognitive 0.23 1.00 0.45 -0.29
#> Somatic 0.08 0.45 1.00 -0.44
#> Selfconfidence 0.51 -0.29 -0.44 1.00
#>
#> $`26`
#> Performance Cognitive Somatic Selfconfidence
#> Performance 1.00 -0.52 -0.43 0.16
#> Cognitive -0.52 1.00 0.57 -0.18
#> Somatic -0.43 0.57 1.00 -0.26
#> Selfconfidence 0.16 -0.18 -0.26 1.00
#>
#> $`28`
#> Performance Cognitive Somatic Selfconfidence
#> Performance 1.00 0.14 0.02 0.13
#> Cognitive 0.14 1.00 0.56 -0.53
#> Somatic 0.02 0.56 1.00 -0.27
#> Selfconfidence 0.13 -0.53 -0.27 1.00
#>
#> $`36`
#> Performance Cognitive Somatic Selfconfidence
#> Performance 1.00 -0.01 -0.16 0.42
#> Cognitive -0.01 1.00 0.62 -0.46
#> Somatic -0.16 0.62 1.00 -0.54
#> Selfconfidence 0.42 -0.46 -0.54 1.00
#>
#> $`38`
#> Performance Cognitive Somatic Selfconfidence
#> Performance 1.00 -0.27 -0.13 0.15
#> Cognitive -0.27 1.00 0.63 -0.68
#> Somatic -0.13 0.63 1.00 -0.71
#> Selfconfidence 0.15 -0.68 -0.71 1.00Calculate OS
There are currently three options for the variance-covariance matrix of the correlation matrix (i.e, simple, average, and weighted) for this example we selected the weighted option.
#olkin_siotani(becker09_list, becker09$N, type = 'simple')
#olkin_siotani(becker09_list, becker09$N, type = 'average')
olkin_siotani(becker09_list, becker09$N, type = 'weighted')
#> [[1]]
#> [,1] [,2] [,3] [,4] [,5]
#> [1,] 0.0068964508 0.0034592598 -0.0024249951 -0.0007709388 0.0019806619
#> [2,] 0.0034592598 0.0066061710 -0.0022932962 -0.0002788858 0.0008637677
#> [3,] -0.0024249951 -0.0022932962 0.0053155444 0.0001634926 -0.0001362802
#> [4,] -0.0007709388 -0.0002788858 0.0001634926 0.0037574849 -0.0013337746
#> [5,] 0.0019806619 0.0008637677 -0.0001362802 -0.0013337746 0.0048166300
#> [6,] 0.0010242015 0.0018602041 -0.0005187913 -0.0013441468 0.0021616446
#> [,6]
#> [1,] 0.0010242015
#> [2,] 0.0018602041
#> [3,] -0.0005187913
#> [4,] -0.0013441468
#> [5,] 0.0021616446
#> [6,] 0.0048308442
#>
#> [[2]]
#> [,1] [,2] [,3] [,4] [,5]
#> [1,] 0.026467460 0.013276078 -0.0093067379 -0.0029587381 0.0076014592
#> [2,] 0.013276078 0.025353413 -0.0088012989 -0.0010703186 0.0033150004
#> [3,] -0.009306738 -0.008801299 0.0204001974 0.0006274581 -0.0005230214
#> [4,] -0.002958738 -0.001070319 0.0006274581 0.0144206177 -0.0051188104
#> [5,] 0.007601459 0.003315000 -0.0005230214 -0.0051188104 0.0184854450
#> [6,] 0.003930719 0.007139162 -0.0019910370 -0.0051586176 0.0082960414
#> [,6]
#> [1,] 0.003930719
#> [2,] 0.007139162
#> [3,] -0.001991037
#> [4,] -0.005158618
#> [5,] 0.008296041
#> [6,] 0.018539997
#>
#> [[3]]
#> [,1] [,2] [,3] [,4] [,5]
#> [1,] 0.069949715 0.035086777 -0.024596379 -0.007819522 0.020089571
#> [2,] 0.035086777 0.067005449 -0.023260576 -0.002828699 0.008761072
#> [3,] -0.024596379 -0.023260576 0.053914807 0.001658282 -0.001382271
#> [4,] -0.007819522 -0.002828699 0.001658282 0.038111633 -0.013528285
#> [5,] 0.020089571 0.008761072 -0.001382271 -0.013528285 0.048854390
#> [6,] 0.010388330 0.018867784 -0.005262026 -0.013633489 0.021925252
#> [,6]
#> [1,] 0.010388330
#> [2,] 0.018867784
#> [3,] -0.005262026
#> [4,] -0.013633489
#> [5,] 0.021925252
#> [6,] 0.048998563
#>
#> [[4]]
#> [,1] [,2] [,3] [,4] [,5]
#> [1,] 0.009792960 0.0049121488 -0.0034434930 -0.0010947331 0.0028125399
#> [2,] 0.004912149 0.0093807628 -0.0032564806 -0.0003960179 0.0012265501
#> [3,] -0.003443493 -0.0032564806 0.0075480730 0.0002321595 -0.0001935179
#> [4,] -0.001094733 -0.0003960179 0.0002321595 0.0053356286 -0.0018939599
#> [5,] 0.002812540 0.0012265501 -0.0001935179 -0.0018939599 0.0068396147
#> [6,] 0.001454366 0.0026414898 -0.0007366837 -0.0019086885 0.0030695353
#> [,6]
#> [1,] 0.0014543662
#> [2,] 0.0026414898
#> [3,] -0.0007366837
#> [4,] -0.0019086885
#> [5,] 0.0030695353
#> [6,] 0.0068597988
#>
#> [[5]]
#> [,1] [,2] [,3] [,4] [,5]
#> [1,] 0.019201883 0.0096316644 -0.0067519471 -0.0021465355 0.0055147841
#> [2,] 0.009631664 0.0183936526 -0.0063852560 -0.0007765056 0.0024050003
#> [3,] -0.006751947 -0.0063852560 0.0148001432 0.0004552147 -0.0003794469
#> [4,] -0.002146536 -0.0007765056 0.0004552147 0.0104620168 -0.0037136468
#> [5,] 0.005514784 0.0024050003 -0.0003794469 -0.0037136468 0.0134110091
#> [6,] 0.002851698 0.0051793917 -0.0014444778 -0.0037425265 0.0060186967
#> [,6]
#> [1,] 0.002851698
#> [2,] 0.005179392
#> [3,] -0.001444478
#> [4,] -0.003742526
#> [5,] 0.006018697
#> [6,] 0.013450586
#>
#> [[6]]
#> [,1] [,2] [,3] [,4] [,5]
#> [1,] 0.0076507501 0.0038376163 -0.0026902289 -0.0008552602 0.0021972968
#> [2,] 0.0038376163 0.0073287209 -0.0025441255 -0.0003093890 0.0009582423
#> [3,] -0.0026902289 -0.0025441255 0.0058969321 0.0001813746 -0.0001511859
#> [4,] -0.0008552602 -0.0003093890 0.0001813746 0.0041684598 -0.0014796561
#> [5,] 0.0021972968 0.0009582423 -0.0001511859 -0.0014796561 0.0053434489
#> [6,] 0.0011362236 0.0020636639 -0.0005755341 -0.0014911629 0.0023980745
#> [,6]
#> [1,] 0.0011362236
#> [2,] 0.0020636639
#> [3,] -0.0005755341
#> [4,] -0.0014911629
#> [5,] 0.0023980745
#> [6,] 0.0053592178
#>
#> [[7]]
#> [,1] [,2] [,3] [,4] [,5]
#> [1,] 0.013989943 0.0070173555 -0.0049192757 -0.0015639044 0.0040179142
#> [2,] 0.007017355 0.0134010897 -0.0046521151 -0.0005657398 0.0017522145
#> [3,] -0.004919276 -0.0046521151 0.0107829615 0.0003316564 -0.0002764542
#> [4,] -0.001563904 -0.0005657398 0.0003316564 0.0076223265 -0.0027056569
#> [5,] 0.004017914 0.0017522145 -0.0002764542 -0.0027056569 0.0097708781
#> [6,] 0.002077666 0.0037735568 -0.0010524053 -0.0027266979 0.0043850504
#> [,6]
#> [1,] 0.002077666
#> [2,] 0.003773557
#> [3,] -0.001052405
#> [4,] -0.002726698
#> [5,] 0.004385050
#> [6,] 0.009799713
#>
#> [[8]]
#> [,1] [,2] [,3] [,4] [,5]
#> [1,] 0.032643200 0.016373829 -0.0114783100 -0.003649110 0.0093751330
#> [2,] 0.016373829 0.031269209 -0.0108549353 -0.001320060 0.0040885004
#> [3,] -0.011478310 -0.010854935 0.0251602435 0.000773865 -0.0006450598
#> [4,] -0.003649110 -0.001320060 0.0007738650 0.017785429 -0.0063131995
#> [5,] 0.009375133 0.004088500 -0.0006450598 -0.006313200 0.0227987155
#> [6,] 0.004847887 0.008804966 -0.0024556123 -0.006362295 0.0102317844
#> [,6]
#> [1,] 0.004847887
#> [2,] 0.008804966
#> [3,] -0.002455612
#> [4,] -0.006362295
#> [5,] 0.010231784
#> [6,] 0.022865996Fitting the models
Below we fitted fixed and random-effects models and extracted some more detail information from objects that are not directly output by the functions. First, we see results under fixed-effect models.
mars(data = becker09, studyID = 'ID',
effectID = 'numID', sample_size = 'N',
effectsize_type = 'cor',
estimation_method = 'FE',
varcov_type = 'weighted',
variable_names = c('Cognitive_Performance', 'Somatic_Performance',
'Selfconfidence_Performance',
'Somatic_Cognitive',
'Selfconfidence_Cognitive',
'Selfconfidence_Somatic')) |>
summary()
#> Results generated with MARS:v 0.6.0.8
#> Friday, November 20, 2026
#>
#> Model Type:
#> multivariate
#>
#> Estimation Method:
#> Fixed/Common Effect
#>
#> Coefficient covariance: gls
#>
#>
#> Model Formula:
#> NULL
#>
#> Data Summary:
#> Number of Effect Sizes: 48
#> Number of Fixed Effects: 6
#> Number of Random Effects: 0
#>
#> Random Components:
#> NULL
#>
#> Fixed Effects Estimates:
#> attribute estimate SE z_test p_value lower upper
#> 1 -0.1020 0.04138 -2.465 1.369e-02 -0.1831 -0.02091
#> 2 -0.1774 0.04050 -4.380 1.189e-05 -0.2567 -0.09799
#> 3 0.3622 0.03633 9.971 2.035e-23 0.2910 0.43342
#> 4 0.5192 0.03054 16.999 8.362e-65 0.4593 0.57904
#> 5 -0.4159 0.03458 -12.028 2.543e-33 -0.4837 -0.34813
#> 6 -0.4144 0.03463 -11.968 5.257e-33 -0.4823 -0.34657
#>
#> Model Fit Statistics:
#> NULL
#>
#> Q Error: 176.665 (42), p < 0.0001
#>
#> I2 (General):
#> 76.2262
#>
#> Residual Diagnostics:
#> Not available.Now we fit a random-effects model and extract some objects from this output.
model_out_random <- mars(data = becker09, studyID = 'ID',
effectID = 'numID', sample_size = 'N',
effectsize_type = 'cor',
varcov_type = 'weighted',
variable_names = c('Cognitive_Performance', 'Somatic_Performance',
'Selfconfidence_Performance',
'Somatic_Cognitive',
'Selfconfidence_Cognitive',
'Selfconfidence_Somatic'))
#> Warning in return_estimates(q_f = q_f, q_r = q_r, estimated_pars =
#> optim_values[["par"]], : Hessian inversion failed: Hessian is singular,
#> indefinite, or numerically unidentified.
summary(model_out_random)
#> Results generated with MARS:v 0.6.0.8
#> Friday, November 20, 2026
#>
#> Model Type:
#> multivariate
#>
#> Estimation Method:
#> Restricted Maximum Likelihood
#>
#> Coefficient covariance: gls
#> Optimizer convergence code: 0
#>
#>
#> Model Formula:
#> NULL
#>
#> Data Summary:
#> Number of Effect Sizes: 48
#> Number of Fixed Effects: 6
#> Number of Random Effects: 6
#>
#> Random Components:
#> ri_1 ri_2 ri_3 ri_4 ri_5 ri_6
#> ri_1 0.13259 0.07647 -0.03120 0.002991 -0.017599 0.002013
#> ri_2 1.00000 0.04410 -0.01799 0.001725 -0.010149 0.001161
#> ri_3 -0.41523 -0.41524 0.04257 -0.007364 0.009573 -0.012524
#> ri_4 0.22541 0.22541 -0.97957 0.001328 -0.001478 0.002332
#> ri_5 -0.60983 -0.60983 0.58544 -0.511766 0.006281 -0.002593
#> ri_6 0.08505 0.08505 -0.93410 0.984794 -0.503411 0.004223
#>
#> Fixed Effects Estimates:
#> attribute estimate SE z_test p_value lower upper
#> 1 -0.09768 0.13804 -0.7076 4.792e-01 -0.3682 0.172872
#> 2 -0.17486 0.08607 -2.0317 4.218e-02 -0.3435 -0.006174
#> 3 0.31843 0.08429 3.7778 1.582e-04 0.1532 0.483629
#> 4 0.52726 0.03337 15.7999 3.115e-56 0.4619 0.592671
#> 5 -0.41737 0.04578 -9.1177 7.674e-20 -0.5071 -0.327654
#> 6 -0.40060 0.04212 -9.5099 1.909e-21 -0.4832 -0.318038
#>
#> Model Fit Statistics:
#> logLik Dev AIC BIC AICc
#> 18.6 -37.2 16.8 63.72 29.53
#>
#> Q Error: 176.665 (42), p < 0.0001
#>
#> I2 (General):
#> names values
#> ri_1 94.55
#> ri_2 85.23
#> ri_3 84.78
#> ri_4 14.80
#> ri_5 45.11
#> ri_6 35.59
#>
#> I2 (Jackson):
#> names values
#> ri_1 91.01
#> ri_2 77.86
#> ri_3 81.43
#> ri_4 16.24
#> ri_5 42.94
#> ri_6 32.42
#>
#> I2 (Between): 83.44217
#>
#> Residual Diagnostics:
#> Diagnostic Value
#> Observations 48
#> Finite raw residuals 48
#> Mean raw residual -0.0217
#> SD of raw residuals 0.2127
#> Root mean squared residual 0.2116
#> Mean absolute residual 0.1646
#> Sum of squared Pearson residuals 135
#> Mean |studentized residual| 1.424
#> Maximum |studentized residual| 5.132
#> Proportion |studentized residual| > 2 0.2708
#> Proportion |studentized residual| > 3 0.1042
#>
#> Normality screen (Shapiro-Wilk, whitened residuals):
#> N W p-value
#> 48 0.9771 0.4638
#>
#> Heteroscedasticity screen (|raw residual| vs fitted):
#> N Correlation Slope p-value
#> 48 -0.003029 -0.001144 0.9837Fit path model
Now, we are ready to input the average correlation matrix and its variance covariance matrix and our own function to appropriate estimate SE via the multivariate delta method.
model <- "## Regression paths
Performance ~ Cognitive + Somatic + Selfconfidence
Selfconfidence ~ Cognitive + Somatic
"
mars(data = becker09, studyID = 'ID',
effectID = 'numID', sample_size = 'N',
effectsize_type = 'cor',
varcov_type = 'weighted',
variable_names = c('Cognitive_Performance', 'Somatic_Performance',
'Selfconfidence_Performance',
'Somatic_Cognitive',
'Selfconfidence_Cognitive',
'Selfconfidence_Somatic')) |>
path_model(model = model) |>
summary()
#> Warning in return_estimates(q_f = q_f, q_r = q_r, estimated_pars =
#> optim_values[["par"]], : Hessian inversion failed: Hessian is singular,
#> indefinite, or numerically unidentified.
#> Results generated with MARS:v 0.6.0.8
#> Friday, November 20, 2026
#>
#> Model Type:
#> multivariate
#>
#> Average Correlation Matrix:
#> Performance Cognitive Somatic Selfconfidence
#> Performance 1.00000000 -0.09767563 -0.1748602 0.3184261
#> Cognitive -0.09767563 1.00000000 0.5272640 -0.4173741
#> Somatic -0.17486023 0.52726402 1.0000000 -0.4006014
#> Selfconfidence 0.31842613 -0.41737415 -0.4006014 1.0000000
#>
#> Synthesis options:
#> method: model
#> pooled coefficient covariance: gls
#> transform: none
#> missing_corr: available
#> attenuation: none
#> pd_adjust: none
#> pd_adjusted: FALSE
#> min eigen (before/after): 0.4581 / 0.4581
#> Fit note: Asymptotic WLS chi-square conditional on the matched estimated sampling covariance; RMSEA is unavailable.
#>
#>
#> Model Fitted:
#> ## Regression paths
#> Performance ~ Cognitive + Somatic + Selfconfidence
#> Selfconfidence ~ Cognitive + Somatic
#>
#>
#> Fixed Effects:
#> predictor outcome estimate
#> Cognitive -> Performance Cognitive Performance 0.08268626
#> Somatic -> Performance Somatic Performance -0.09180330
#> Selfconfidence -> Performance Selfconfidence Performance 0.31616071
#> Cognitive -> Selfconfidence Cognitive Selfconfidence -0.28553124
#> Somatic -> Selfconfidence Somatic Selfconfidence -0.25005102
#> standard_errors test_statistic p_value
#> Cognitive -> Performance 0.15435006 0.535706 5.921617e-01
#> Somatic -> Performance 0.06119325 -1.500220 1.335575e-01
#> Selfconfidence -> Performance 0.10211593 3.096096 1.960869e-03
#> Cognitive -> Selfconfidence 0.06651037 -4.293034 1.762483e-05
#> Somatic -> Selfconfidence 0.06603694 -3.786532 1.527642e-04
#>
#>
#> Fit Statistics:
#> Type Value
#> 1 Model Chi-Square 0 (0)
#> 2 Null Model Chi-Square 403.038 (6)
#> 3 CFI 1
#> 4 TLI <NA>
#> 5 RMSEA <NA>
#> 6 SRMR 0
#> 7 CFI (raw) 1
#> 8 TLI (raw) <NA>Team
We now subset the data to obtain results only for the studies that reported on Team sports.
becker09_T <- subset(becker09, becker09$Team == "T")
mars(data = becker09_T, studyID = 'ID',
effectID = 'numID', sample_size = 'N',
effectsize_type = 'cor',
varcov_type = 'weighted',
variable_names = c('Cognitive_Performance', 'Somatic_Performance',
'Selfconfidence_Performance',
'Somatic_Cognitive',
'Selfconfidence_Cognitive',
'Selfconfidence_Somatic')) |>
summary()
#> Results generated with MARS:v 0.6.0.8
#> Friday, November 20, 2026
#>
#> Model Type:
#> multivariate
#>
#> Estimation Method:
#> Restricted Maximum Likelihood
#>
#> Coefficient covariance: gls
#> Optimizer convergence code: 0
#>
#>
#> Model Formula:
#> NULL
#>
#> Data Summary:
#> Number of Effect Sizes: 18
#> Number of Fixed Effects: 6
#> Number of Random Effects: 6
#>
#> Random Components:
#> ri_1 ri_2 ri_3 ri_4 ri_5 ri_6
#> ri_1 0.1130 0.07313 0.0092261 0.0012162 -0.0604297 -0.015526
#> ri_2 0.9841 0.04885 0.0003682 -0.0003549 -0.0389057 -0.004659
#> ri_3 0.1887 0.01145 0.0211572 0.0042589 -0.0056194 -0.020886
#> ri_4 0.1233 -0.05472 0.9978093 0.0008611 -0.0007903 -0.004167
#> ri_5 -0.9996 -0.97904 -0.2148664 -0.1497847 0.0323284 0.008961
#> ri_6 -0.3187 -0.14549 -0.9909606 -0.9799146 0.3439441 0.020996
#>
#> Fixed Effects Estimates:
#> attribute estimate SE z_test p_value lower upper
#> 1 -0.1245 0.2048 -0.6079 5.432e-01 -0.52591 0.27690
#> 2 -0.1853 0.1425 -1.2999 1.936e-01 -0.46465 0.09409
#> 3 0.2329 0.1043 2.2320 2.562e-02 0.02838 0.43738
#> 4 0.5825 0.0455 12.8030 1.578e-37 0.49335 0.67171
#> 5 -0.3928 0.1161 -3.3846 7.129e-04 -0.62025 -0.16533
#> 6 -0.3534 0.1015 -3.4825 4.967e-04 -0.55222 -0.15449
#>
#> Model Fit Statistics:
#> logLik Dev AIC BIC AICc
#> 11.04 -22.09 31.91 45 171.9
#>
#> Q Error: 47.096 (12), p < 0.0001
#>
#> I2 (General):
#> names values
#> ri_1 94.43
#> ri_2 88.00
#> ri_3 76.05
#> ri_4 11.45
#> ri_5 82.91
#> ri_6 75.91
#>
#> I2 (Jackson):
#> names values
#> ri_1 90.45
#> ri_2 80.82
#> ri_3 66.52
#> ri_4 14.25
#> ri_5 80.55
#> ri_6 69.67
#>
#> I2 (Between): 85.58066
#>
#> Residual Diagnostics:
#> Diagnostic Value
#> Observations 18
#> Finite raw residuals 18
#> Mean raw residual -0.001024
#> SD of raw residuals 0.1739
#> Root mean squared residual 0.169
#> Mean absolute residual 0.137
#> Sum of squared Pearson residuals 43.57
#> Mean |studentized residual| 1.607
#> Maximum |studentized residual| 4.228
#> Proportion |studentized residual| > 2 0.3333
#> Proportion |studentized residual| > 3 0.1667
#>
#> Normality screen (Shapiro-Wilk, whitened residuals):
#> N W p-value
#> 18 0.9467 0.3752
#>
#> Heteroscedasticity screen (|raw residual| vs fitted):
#> N Correlation Slope p-value
#> 18 -0.4088 -0.1174 0.0921
# random_model2 <- fit_model(data = input_metafor2, effect_size = 'yi',
# var_cor = 'V', moderators = ~ -1 + factor(outcome),
# random_params = ~ factor(outcome) | factor(study))Fit path model
model <- "## Regression paths
Performance ~ Cognitive + Somatic + Selfconfidence
Selfconfidence ~ Cognitive + Somatic
"
mars(data = becker09_T, studyID = 'ID',
effectID = 'numID', sample_size = 'N',
effectsize_type = 'cor',
varcov_type = 'weighted',
variable_names = c('Cognitive_Performance', 'Somatic_Performance',
'Selfconfidence_Performance',
'Somatic_Cognitive',
'Selfconfidence_Cognitive',
'Selfconfidence_Somatic')) |>
path_model(model = model) |>
summary()
#> Results generated with MARS:v 0.6.0.8
#> Friday, November 20, 2026
#>
#> Model Type:
#> multivariate
#>
#> Average Correlation Matrix:
#> Performance Cognitive Somatic Selfconfidence
#> Performance 1.0000000 -0.1245061 -0.1852841 0.2328825
#> Cognitive -0.1245061 1.0000000 0.5825292 -0.3927931
#> Somatic -0.1852841 0.5825292 1.0000000 -0.3533503
#> Selfconfidence 0.2328825 -0.3927931 -0.3533503 1.0000000
#>
#> Synthesis options:
#> method: model
#> pooled coefficient covariance: gls
#> transform: none
#> missing_corr: available
#> attenuation: none
#> pd_adjust: none
#> pd_adjusted: FALSE
#> min eigen (before/after): 0.4095 / 0.4095
#> Fit note: Asymptotic WLS chi-square conditional on the matched estimated sampling covariance; RMSEA is unavailable.
#>
#>
#> Model Fitted:
#> ## Regression paths
#> Performance ~ Cognitive + Somatic + Selfconfidence
#> Selfconfidence ~ Cognitive + Somatic
#>
#>
#> Fixed Effects:
#> predictor outcome estimate
#> Cognitive -> Performance Cognitive Performance 0.03091811
#> Somatic -> Performance Somatic Performance -0.13336611
#> Selfconfidence -> Performance Selfconfidence Performance 0.19790196
#> Cognitive -> Selfconfidence Cognitive Selfconfidence -0.28298410
#> Somatic -> Selfconfidence Somatic Selfconfidence -0.18850379
#> standard_errors test_statistic p_value
#> Cognitive -> Performance 0.25965742 0.1190727 0.90521776
#> Somatic -> Performance 0.08357974 -1.5956751 0.11056135
#> Selfconfidence -> Performance 0.16482559 1.2006750 0.22987731
#> Cognitive -> Selfconfidence 0.16417546 -1.7236687 0.08476767
#> Somatic -> Selfconfidence 0.14416257 -1.3075779 0.19101652
#>
#>
#> Fit Statistics:
#> Type Value
#> 1 Model Chi-Square 0 (0)
#> 2 Null Model Chi-Square 212.309 (6)
#> 3 CFI 1
#> 4 TLI <NA>
#> 5 RMSEA <NA>
#> 6 SRMR 0
#> 7 CFI (raw) 1
#> 8 TLI (raw) <NA>Individual
Similarly, we now subset the data to obtain results only for the studies that reported on Individual sports.
becker09_I <- subset(becker09, becker09$Team == "I")
mars(data = becker09_I, studyID = 'ID',
effectID = 'numID', sample_size = 'N',
effectsize_type = 'cor',
varcov_type = 'weighted',
variable_names = c('Cognitive_Performance', 'Somatic_Performance',
'Selfconfidence_Performance',
'Somatic_Cognitive',
'Selfconfidence_Cognitive',
'Selfconfidence_Somatic')) |>
summary()
#> Results generated with MARS:v 0.6.0.8
#> Friday, November 20, 2026
#>
#> Model Type:
#> multivariate
#>
#> Estimation Method:
#> Restricted Maximum Likelihood
#>
#> Coefficient covariance: gls
#> Optimizer convergence code: 0
#>
#>
#> Model Formula:
#> NULL
#>
#> Data Summary:
#> Number of Effect Sizes: 30
#> Number of Fixed Effects: 6
#> Number of Random Effects: 6
#>
#> Random Components:
#> ri_1 ri_2 ri_3 ri_4 ri_5 ri_6
#> ri_1 0.1948 0.07612 -0.06016 0.0019427 0.013602 0.020944
#> ri_2 0.8004 0.04644 -0.02144 0.0005689 0.004875 0.002171
#> ri_3 -0.5330 -0.38889 0.06542 -0.0073414 0.024492 0.005806
#> ri_4 0.1399 0.08387 -0.91204 0.0009904 -0.004006 -0.001601
#> ri_5 0.2253 0.16539 0.70010 -0.9306140 0.018707 0.009662
#> ri_6 0.5285 0.11222 0.25280 -0.5666008 0.786721 0.008063
#>
#> Fixed Effects Estimates:
#> attribute estimate SE z_test p_value lower upper
#> 1 -0.08366 0.20964 -0.3991 6.898e-01 -0.49454 0.32722
#> 2 -0.18289 0.11428 -1.6004 1.095e-01 -0.40687 0.04108
#> 3 0.33753 0.12615 2.6756 7.459e-03 0.09028 0.58479
#> 4 0.49047 0.04562 10.7502 5.916e-27 0.40104 0.57989
#> 5 -0.46567 0.07946 -5.8601 4.625e-09 -0.62141 -0.30992
#> 6 -0.49761 0.06086 -8.1767 2.918e-16 -0.61688 -0.37833
#>
#> Model Fit Statistics:
#> logLik Dev AIC BIC AICc
#> 11.39 -22.79 31.21 63.02 59.21
#>
#> Q Error: 114.901 (24), p < 0.0001
#>
#> I2 (General):
#> names values
#> ri_1 95.77
#> ri_2 84.36
#> ri_3 88.37
#> ri_4 10.32
#> ri_5 68.49
#> ri_6 48.36
#>
#> I2 (Jackson):
#> names values
#> ri_1 93.28
#> ri_2 78.52
#> ri_3 88.30
#> ri_4 10.40
#> ri_5 65.30
#> ri_6 49.12
#>
#> I2 (Between): 86.62081
#>
#> Residual Diagnostics:
#> Diagnostic Value
#> Observations 30
#> Finite raw residuals 30
#> Mean raw residual -0.008362
#> SD of raw residuals 0.2292
#> Root mean squared residual 0.2255
#> Mean absolute residual 0.1753
#> Sum of squared Pearson residuals 56.54
#> Mean |studentized residual| 1.273
#> Maximum |studentized residual| 3.477
#> Proportion |studentized residual| > 2 0.2
#> Proportion |studentized residual| > 3 0.06667
#>
#> Normality screen (Shapiro-Wilk, whitened residuals):
#> N W p-value
#> 30 0.9765 0.7265
#>
#> Heteroscedasticity screen (|raw residual| vs fitted):
#> N Correlation Slope p-value
#> 30 0.1292 0.04919 0.4961Fit path model
model <- "## Regression paths
Performance ~ Cognitive + Somatic + Selfconfidence
Selfconfidence ~ Cognitive + Somatic
"
mars(data = becker09_I, studyID = 'ID',
effectID = 'numID', sample_size = 'N',
effectsize_type = 'cor',
varcov_type = 'weighted',
variable_names = c('Cognitive_Performance', 'Somatic_Performance',
'Selfconfidence_Performance',
'Somatic_Cognitive',
'Selfconfidence_Cognitive',
'Selfconfidence_Somatic')) |>
path_model(model = model) |>
summary()
#> Results generated with MARS:v 0.6.0.8
#> Friday, November 20, 2026
#>
#> Model Type:
#> multivariate
#>
#> Average Correlation Matrix:
#> Performance Cognitive Somatic Selfconfidence
#> Performance 1.00000000 -0.08366072 -0.1828937 0.3375332
#> Cognitive -0.08366072 1.00000000 0.4904663 -0.4656678
#> Somatic -0.18289368 0.49046629 1.0000000 -0.4976074
#> Selfconfidence 0.33753323 -0.46566782 -0.4976074 1.0000000
#>
#> Synthesis options:
#> method: model
#> pooled coefficient covariance: gls
#> transform: none
#> missing_corr: available
#> attenuation: none
#> pd_adjust: none
#> pd_adjusted: FALSE
#> min eigen (before/after): 0.4593 / 0.4593
#> Fit note: Asymptotic WLS chi-square conditional on the matched estimated sampling covariance; RMSEA is unavailable.
#>
#>
#> Model Fitted:
#> ## Regression paths
#> Performance ~ Cognitive + Somatic + Selfconfidence
#> Selfconfidence ~ Cognitive + Somatic
#>
#>
#> Fixed Effects:
#> predictor outcome estimate
#> Cognitive -> Performance Cognitive Performance 0.11330604
#> Somatic -> Performance Somatic Performance -0.05881576
#> Selfconfidence -> Performance Selfconfidence Performance 0.36102905
#> Cognitive -> Selfconfidence Cognitive Selfconfidence -0.29180365
#> Somatic -> Selfconfidence Somatic Selfconfidence -0.35448751
#> standard_errors test_statistic p_value
#> Cognitive -> Performance 0.23314100 0.4859979 6.269686e-01
#> Somatic -> Performance 0.13567654 -0.4334998 6.646517e-01
#> Selfconfidence -> Performance 0.14685603 2.4583876 1.395624e-02
#> Cognitive -> Selfconfidence 0.08210454 -3.5540500 3.793471e-04
#> Somatic -> Selfconfidence 0.06358660 -5.5748772 2.477045e-08
#>
#>
#> Fit Statistics:
#> Type Value
#> 1 Model Chi-Square 0 (0)
#> 2 Null Model Chi-Square 273.296 (6)
#> 3 CFI 1
#> 4 TLI <NA>
#> 5 RMSEA <NA>
#> 6 SRMR 0
#> 7 CFI (raw) 1
#> 8 TLI (raw) <NA>Partial correlation matrix
Here we compute the synthetic partial correlation from the average correlation matrix.
# partial corr matrix
part_cor <- round(mars:::lower_vector_to_symmetric(model_out_random$beta_r), 3)
diag(part_cor) <- 1
part_cor
#> [,1] [,2] [,3] [,4]
#> [1,] 1.000 -0.098 -0.175 0.318
#> [2,] -0.098 1.000 0.527 -0.417
#> [3,] -0.175 0.527 1.000 -0.401
#> [4,] 0.318 -0.417 -0.401 1.000
# var-cov matrix of partials
Psy <- model_out_random$varcov_beta
round(mars:::var_path(part_cor, Psy, type = 'pcor'), 4)
#> [,1] [,2] [,3] [,4] [,5] [,6]
#> [1,] 0.0175 0.0010 0.0048 0.0005 -0.0071 0.0016
#> [2,] 0.0010 0.0027 0.0029 -0.0006 0.0003 -0.0014
#> [3,] 0.0048 0.0029 0.0078 -0.0013 -0.0002 -0.0022
#> [4,] 0.0005 -0.0006 -0.0013 0.0016 -0.0002 0.0012
#> [5,] -0.0071 0.0003 -0.0002 -0.0002 0.0057 -0.0027
#> [6,] 0.0016 -0.0014 -0.0022 0.0012 -0.0027 0.0035Partial from uni approach
Here we work with partial correlation for each study and then synthesize that information.
#---------------------------------------------------------------------
# Create a data set with 8 complete studies
#---------------------------------------------------------------------
R <- becker09_list
R$"6" <- NULL
R$"17" <- NULL
n <- becker09$N[c(-3, -5)]
#------------------------------------------------------------------
# first replace NA by zeros
RR <- R # redefine list
cor_to_partial <- function(x) {
precision <- matrixcalc::svd.inverse(x)
partial <- -stats::cov2cor(precision)
diag(partial) <- 1
partial
}
PR <- lapply(RR, cor_to_partial)
pr <- unlist(lapply(PR, '[[', 4))
var_pr <- (1-pr^2)^2 / (n - 3 -1)
#> Warning in (1 - pr^2)^2/(n - 3 - 1): longer object length is not a multiple of
#> shorter object length
#id <- becker09$ID[c(-3, -5)]
dat_pr <- data.frame(cbind("id" =becker09$ID, pr, var_pr))
mars(formula = pr ~ 1,
data = dat_pr, studyID = 'id',
variance = 'var_pr', varcov_type = 'univariate',
structure = 'univariate',
estimation_method = "MLE") |> summary()
#> Results generated with MARS:v 0.6.0.8
#> Friday, November 20, 2026
#>
#> Model Type:
#> univariate
#>
#> Estimation Method:
#> Maximum Likelihood
#>
#> Coefficient covariance: gls
#> Optimizer convergence code: 0
#>
#>
#> Model Formula:
#> pr ~ 1
#>
#> Data Summary:
#> Number of Effect Sizes: 8
#> Number of Fixed Effects: 1
#> Number of Random Effects: 1
#>
#> Random Components:
#> term var SD
#> intercept 0.05691 0.2385
#>
#> Fixed Effects Estimates:
#> attribute estimate SE z_test p_value lower upper
#> (Intercept) 0.2916 0.09402 3.101 0.001927 0.1073 0.4759
#>
#> Model Fit Statistics:
#> logLik Dev AIC BIC AICc
#> -0.5591 7.118 5.118 5.277 35.12
#>
#> Q Error: 64.183 (7), p < 0.0001
#>
#> I2 (General): 87.74042
#>
#> Residual Diagnostics:
#> Diagnostic Value
#> Observations 8
#> Finite raw residuals 8
#> Mean raw residual -0.02249
#> SD of raw residuals 0.2681
#> Root mean squared residual 0.2518
#> Mean absolute residual 0.2201
#> Sum of squared Pearson residuals 7.51
#> Mean |studentized residual| 0.9032
#> Maximum |studentized residual| 1.609
#> Proportion |studentized residual| > 2 0
#> Proportion |studentized residual| > 3 0
#>
#> Normality screen (Shapiro-Wilk, whitened residuals):
#> N W p-value
#> 8 0.954 0.7517