diff --git a/inst/qml/qml_components/PredictionPerformanceInference.qml b/inst/qml/qml_components/PredictionPerformanceInference.qml index 15233852..448ff3f9 100644 --- a/inst/qml/qml_components/PredictionPerformanceInference.qml +++ b/inst/qml/qml_components/PredictionPerformanceInference.qml @@ -47,7 +47,7 @@ Section name: "linkOE" visible: measure == "OE" label: qsTr("Within-study variation") - values: if (method.value == "Fixed Effects" || method.value == "Maximum Likelihood" || analysisType == "bayesian"){ + values: if (analysisType == "bayesian"){ // removing as metamisc's link function is broken for frequentist option: method.value == "Fixed Effects" || method.value == "Maximum Likelihood" || [ { label: qsTr("Normal/Log"), value: "normal/log" }, { label: qsTr("Normal/Identity"), value: "normal/identity" }, diff --git a/tests/testthat/_snaps/bayesianmetaanalysis/effect-size-subplot-2.svg b/tests/testthat/_snaps/bayesianmetaanalysis/effect-size-subplot-2.svg index d83ab993..58214af7 100644 --- a/tests/testthat/_snaps/bayesianmetaanalysis/effect-size-subplot-2.svg +++ b/tests/testthat/_snaps/bayesianmetaanalysis/effect-size-subplot-2.svg @@ -36,8 +36,8 @@ - - + + data | H0 data | H1 diff --git a/tests/testthat/_snaps/bayesianmetaanalysis/effect-size-subplot-4.svg b/tests/testthat/_snaps/bayesianmetaanalysis/effect-size-subplot-4.svg index ead79527..c0dd0e72 100644 --- a/tests/testthat/_snaps/bayesianmetaanalysis/effect-size-subplot-4.svg +++ b/tests/testthat/_snaps/bayesianmetaanalysis/effect-size-subplot-4.svg @@ -36,8 +36,8 @@ - - + + diff --git a/tests/testthat/_snaps/bayesianmetaanalysis/heterogeneity-subplot-2.svg b/tests/testthat/_snaps/bayesianmetaanalysis/heterogeneity-subplot-2.svg index 33e5b61f..47274789 100644 --- a/tests/testthat/_snaps/bayesianmetaanalysis/heterogeneity-subplot-2.svg +++ b/tests/testthat/_snaps/bayesianmetaanalysis/heterogeneity-subplot-2.svg @@ -36,8 +36,8 @@ - - + + data | Hf1 data | Hr1 diff --git a/tests/testthat/_snaps/bayesianmetaanalysis/heterogeneity-subplot-4.svg b/tests/testthat/_snaps/bayesianmetaanalysis/heterogeneity-subplot-4.svg index f957c9c4..383dfe3a 100644 --- a/tests/testthat/_snaps/bayesianmetaanalysis/heterogeneity-subplot-4.svg +++ b/tests/testthat/_snaps/bayesianmetaanalysis/heterogeneity-subplot-4.svg @@ -34,8 +34,8 @@ - - + + diff --git a/tests/testthat/_snaps/bayesianmetaanalysis/observed-study-effects.svg b/tests/testthat/_snaps/bayesianmetaanalysis/observed-study-effects.svg index cc37c4af..c7ba2596 100644 --- a/tests/testthat/_snaps/bayesianmetaanalysis/observed-study-effects.svg +++ b/tests/testthat/_snaps/bayesianmetaanalysis/observed-study-effects.svg @@ -81,9 +81,9 @@ - - - + + + @@ -103,22 +103,22 @@ Fixed effects Random effects Averaged --0.94 [-2.11, 0.23] --1.67 [-2.56, -0.77] --1.39 [-2.68, -0.10] --1.46 [-1.74, -1.18] --0.22 [-0.67, 0.23] +-0.94 [-2.11, 0.23] +-1.67 [-2.56, -0.77] +-1.39 [-2.68, -0.10] +-1.46 [-1.74, -1.18] +-0.22 [-0.67, 0.23] -0.96 [-1.15, -0.76] --1.63 [-2.57, -0.70] -0.01 [-0.11, 0.14] --0.47 [-0.94, -0.00] --1.40 [-1.94, -0.86] --0.34 [-0.56, -0.12] -0.45 [-0.99, 1.88] --0.02 [-0.54, 0.51] --0.43 [-0.52, -0.35] --0.70 [-1.10, -0.31] --0.70 [-1.10, -0.32] +-1.63 [-2.57, -0.70] +0.01 [-0.11, 0.14] +-0.47 [-0.94, -0.00] +-1.40 [-1.94, -0.86] +-0.34 [-0.56, -0.12] +0.45 [-0.99, 1.88] +-0.02 [-0.54, 0.51] +-0.43 [-0.52, -0.35] +-0.70 [-1.10, -0.31] +-0.70 [-1.10, -0.32] diff --git a/tests/testthat/_snaps/classicalpredictionperformance/debray-1.svg b/tests/testthat/_snaps/classicalpredictionperformance/debray-1.svg index 4f17856d..7afb113a 100644 --- a/tests/testthat/_snaps/classicalpredictionperformance/debray-1.svg +++ b/tests/testthat/_snaps/classicalpredictionperformance/debray-1.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/classicalpredictionperformance/debray-3.svg b/tests/testthat/_snaps/classicalpredictionperformance/debray-3.svg index 7ec9173c..503f7de0 100644 --- a/tests/testthat/_snaps/classicalpredictionperformance/debray-3.svg +++ b/tests/testthat/_snaps/classicalpredictionperformance/debray-3.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/classicalpredictionperformance/debray-4.svg b/tests/testthat/_snaps/classicalpredictionperformance/debray-4.svg index d6f6357f..408dddb5 100644 --- a/tests/testthat/_snaps/classicalpredictionperformance/debray-4.svg +++ b/tests/testthat/_snaps/classicalpredictionperformance/debray-4.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/classicalpredictionperformance/egger-multiplicative-overdispersion-1.svg b/tests/testthat/_snaps/classicalpredictionperformance/egger-multiplicative-overdispersion-1.svg index fd7fc6f4..ef729cec 100644 --- a/tests/testthat/_snaps/classicalpredictionperformance/egger-multiplicative-overdispersion-1.svg +++ b/tests/testthat/_snaps/classicalpredictionperformance/egger-multiplicative-overdispersion-1.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/classicalpredictionperformance/egger-multiplicative-overdispersion-3.svg b/tests/testthat/_snaps/classicalpredictionperformance/egger-multiplicative-overdispersion-3.svg index c08998d5..2eaed8d2 100644 --- a/tests/testthat/_snaps/classicalpredictionperformance/egger-multiplicative-overdispersion-3.svg +++ b/tests/testthat/_snaps/classicalpredictionperformance/egger-multiplicative-overdispersion-3.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/classicalpredictionperformance/egger-multiplicative-overdispersion-4.svg b/tests/testthat/_snaps/classicalpredictionperformance/egger-multiplicative-overdispersion-4.svg index a78d209c..bd3076e6 100644 --- a/tests/testthat/_snaps/classicalpredictionperformance/egger-multiplicative-overdispersion-4.svg +++ b/tests/testthat/_snaps/classicalpredictionperformance/egger-multiplicative-overdispersion-4.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/classicalpredictionperformance/egger-unweighted-1.svg b/tests/testthat/_snaps/classicalpredictionperformance/egger-unweighted-1.svg index ed61df6e..10e5ace9 100644 --- a/tests/testthat/_snaps/classicalpredictionperformance/egger-unweighted-1.svg +++ b/tests/testthat/_snaps/classicalpredictionperformance/egger-unweighted-1.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/classicalpredictionperformance/egger-unweighted-3.svg b/tests/testthat/_snaps/classicalpredictionperformance/egger-unweighted-3.svg index 2634a5a9..475bf527 100644 --- a/tests/testthat/_snaps/classicalpredictionperformance/egger-unweighted-3.svg +++ b/tests/testthat/_snaps/classicalpredictionperformance/egger-unweighted-3.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/classicalpredictionperformance/egger-unweighted-4.svg b/tests/testthat/_snaps/classicalpredictionperformance/egger-unweighted-4.svg index 869a443a..d004224f 100644 --- a/tests/testthat/_snaps/classicalpredictionperformance/egger-unweighted-4.svg +++ b/tests/testthat/_snaps/classicalpredictionperformance/egger-unweighted-4.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/classicalpredictionperformance/forest-plot-1.svg b/tests/testthat/_snaps/classicalpredictionperformance/forest-plot-1.svg index 78fbe3e4..23673c48 100644 --- a/tests/testthat/_snaps/classicalpredictionperformance/forest-plot-1.svg +++ b/tests/testthat/_snaps/classicalpredictionperformance/forest-plot-1.svg @@ -112,31 +112,31 @@ Summary Estimate Prediction Interval -0.61 [0.42 ; 0.88] -0.62 [0.36 ; 1.06] -0.68 [0.64 ; 0.72] -0.69 [0.60 ; 0.79] -0.73 [0.64 ; 0.84] -0.78 [0.68 ; 0.89] -0.80 [0.40 ; 1.59] -0.86 [0.70 ; 1.04] -0.92 [0.86 ; 0.99] -0.97 [0.70 ; 1.35] -1.03 [0.82 ; 1.28] -1.05 [0.92 ; 1.19] -1.10 [0.99 ; 1.23] -1.20 [1.02 ; 1.42] -1.21 [0.89 ; 1.63] -1.26 [1.10 ; 1.43] -1.31 [0.86 ; 1.99] -1.32 [0.99 ; 1.76] -1.41 [1.30 ; 1.53] -1.56 [0.94 ; 2.58] -2.25 [1.18 ; 4.27] -2.57 [1.64 ; 4.03] -4.86 [3.52 ; 6.71] -1.11 [0.90 ; 1.36] -1.11 [0.43 ; 2.86] +0.61 [0.42 ; 0.88] +0.62 [0.36 ; 1.06] +0.68 [0.64 ; 0.72] +0.69 [0.60 ; 0.79] +0.73 [0.64 ; 0.84] +0.78 [0.68 ; 0.89] +0.80 [0.40 ; 1.59] +0.86 [0.70 ; 1.04] +0.92 [0.86 ; 0.99] +0.97 [0.70 ; 1.35] +1.03 [0.82 ; 1.28] +1.05 [0.92 ; 1.19] +1.10 [0.99 ; 1.23] +1.20 [1.02 ; 1.42] +1.21 [0.89 ; 1.63] +1.26 [1.10 ; 1.43] +1.31 [0.86 ; 1.99] +1.32 [0.99 ; 1.76] +1.41 [1.30 ; 1.53] +1.56 [0.94 ; 2.58] +2.25 [1.18 ; 4.27] +2.57 [1.64 ; 4.03] +4.86 [3.52 ; 6.71] +1.11 [0.90 ; 1.36] +1.11 [0.43 ; 2.86] diff --git a/tests/testthat/_snaps/classicalpredictionperformance/forest-plot-3.svg b/tests/testthat/_snaps/classicalpredictionperformance/forest-plot-3.svg index fd7141d8..bb6566dc 100644 --- a/tests/testthat/_snaps/classicalpredictionperformance/forest-plot-3.svg +++ b/tests/testthat/_snaps/classicalpredictionperformance/forest-plot-3.svg @@ -108,30 +108,30 @@ 2 Summary Estimate -0.64 [0.48 ; 0.78] -0.67 [0.61 ; 0.73] -0.72 [0.62 ; 0.80] -0.72 [0.69 ; 0.75] -0.72 [0.52 ; 0.86] -0.72 [0.64 ; 0.79] -0.76 [0.57 ; 0.88] -0.77 [0.68 ; 0.84] -0.77 [0.62 ; 0.87] -0.77 [0.64 ; 0.86] -0.77 [0.76 ; 0.78] -0.79 [0.76 ; 0.82] -0.80 [0.77 ; 0.83] -0.81 [0.79 ; 0.82] -0.81 [0.78 ; 0.84] -0.81 [0.74 ; 0.88] -0.82 [0.80 ; 0.84] -0.82 [0.78 ; 0.86] -0.83 [0.80 ; 0.85] -0.84 [0.79 ; 0.88] -0.85 [0.82 ; 0.87] -0.86 [0.75 ; 0.92] -0.87 [0.80 ; 0.94] -0.79 [0.78 ; 0.80] +0.64 [0.48 ; 0.78] +0.67 [0.61 ; 0.73] +0.72 [0.62 ; 0.80] +0.72 [0.69 ; 0.75] +0.72 [0.52 ; 0.86] +0.72 [0.64 ; 0.79] +0.76 [0.57 ; 0.88] +0.77 [0.68 ; 0.84] +0.77 [0.62 ; 0.87] +0.77 [0.64 ; 0.86] +0.77 [0.76 ; 0.78] +0.79 [0.76 ; 0.82] +0.80 [0.77 ; 0.83] +0.81 [0.79 ; 0.82] +0.81 [0.78 ; 0.84] +0.81 [0.74 ; 0.88] +0.82 [0.80 ; 0.84] +0.82 [0.78 ; 0.86] +0.83 [0.80 ; 0.85] +0.84 [0.79 ; 0.88] +0.85 [0.82 ; 0.87] +0.86 [0.75 ; 0.92] +0.87 [0.80 ; 0.94] +0.79 [0.78 ; 0.80] diff --git a/tests/testthat/_snaps/classicalpredictionperformance/macaskill-1.svg b/tests/testthat/_snaps/classicalpredictionperformance/macaskill-1.svg index c8b3b04d..666dcb1b 100644 --- a/tests/testthat/_snaps/classicalpredictionperformance/macaskill-1.svg +++ b/tests/testthat/_snaps/classicalpredictionperformance/macaskill-1.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/classicalpredictionperformance/macaskill-3.svg b/tests/testthat/_snaps/classicalpredictionperformance/macaskill-3.svg index 157c81ee..30a0fa74 100644 --- a/tests/testthat/_snaps/classicalpredictionperformance/macaskill-3.svg +++ b/tests/testthat/_snaps/classicalpredictionperformance/macaskill-3.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/classicalpredictionperformance/peters-1.svg b/tests/testthat/_snaps/classicalpredictionperformance/peters-1.svg index 9b3bdc78..ce2272bb 100644 --- a/tests/testthat/_snaps/classicalpredictionperformance/peters-1.svg +++ b/tests/testthat/_snaps/classicalpredictionperformance/peters-1.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/classicalpredictionperformance/peters-3.svg b/tests/testthat/_snaps/classicalpredictionperformance/peters-3.svg index 11ccfb5a..d878f664 100644 --- a/tests/testthat/_snaps/classicalpredictionperformance/peters-3.svg +++ b/tests/testthat/_snaps/classicalpredictionperformance/peters-3.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-0.svg b/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-0.svg index 6adb56d6..db44605b 100644 --- a/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-0.svg +++ b/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-0.svg @@ -27,8 +27,8 @@ - - + + diff --git a/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-1.svg b/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-1.svg index 45eb32a1..5ab472c0 100644 --- a/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-1.svg +++ b/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-1.svg @@ -27,8 +27,8 @@ - - + + diff --git a/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-2.svg b/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-2.svg index 3d94e9fd..66126597 100644 --- a/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-2.svg +++ b/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-2.svg @@ -27,8 +27,8 @@ - - + + diff --git a/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-4.svg b/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-4.svg index f50a1b73..9dd6da7f 100644 --- a/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-4.svg +++ b/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-4.svg @@ -27,8 +27,8 @@ - - + + diff --git a/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-5.svg b/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-5.svg index a8a33b20..faa96e50 100644 --- a/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-5.svg +++ b/tests/testthat/_snaps/penalizedmetaanalysis/posterior-plot-5.svg @@ -27,8 +27,8 @@ - - + + diff --git a/tests/testthat/_snaps/petpeese/estimated-peese-regression-mu.svg b/tests/testthat/_snaps/petpeese/estimated-peese-regression-mu.svg index 3868633e..2611f470 100644 --- a/tests/testthat/_snaps/petpeese/estimated-peese-regression-mu.svg +++ b/tests/testthat/_snaps/petpeese/estimated-peese-regression-mu.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/petpeese/estimated-peese-regression-rho.svg b/tests/testthat/_snaps/petpeese/estimated-peese-regression-rho.svg index 4ce3d7a1..5cc2fc14 100644 --- a/tests/testthat/_snaps/petpeese/estimated-peese-regression-rho.svg +++ b/tests/testthat/_snaps/petpeese/estimated-peese-regression-rho.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/petpeese/estimated-pet-regression-mu.svg b/tests/testthat/_snaps/petpeese/estimated-pet-regression-mu.svg index 464a8753..d860741f 100644 --- a/tests/testthat/_snaps/petpeese/estimated-pet-regression-mu.svg +++ b/tests/testthat/_snaps/petpeese/estimated-pet-regression-mu.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/petpeese/estimated-pet-regression-rho.svg b/tests/testthat/_snaps/petpeese/estimated-pet-regression-rho.svg index 406dd6ae..e64a72c0 100644 --- a/tests/testthat/_snaps/petpeese/estimated-pet-regression-rho.svg +++ b/tests/testthat/_snaps/petpeese/estimated-pet-regression-rho.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-2.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-2.svg index 019a5c9f..84e9c443 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-2.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-2.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-3.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-3.svg index 89637f6c..3c1afdcf 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-3.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-3.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-4.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-4.svg index 2a2b5d1a..ac29119e 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-4.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-4.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-5.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-5.svg index c40a6c7c..fb9ddcd3 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-5.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-5.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-6.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-6.svg index f08a4a9e..42eeb44a 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-6.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-6.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-7.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-7.svg index 9176b7c5..d72ec55c 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-7.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-7.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-8.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-8.svg index 7978fd6e..c551568e 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-8.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-8.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-9.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-9.svg index 61d6d01d..a7537e07 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-9.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test1-titleless-plot-9.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-conditional-effect-size-estimates.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-conditional-effect-size-estimates.svg index 09cf9648..51c388e7 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-conditional-effect-size-estimates.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-conditional-effect-size-estimates.svg @@ -99,7 +99,7 @@ - + @@ -124,25 +124,25 @@ Model 21 Model 20 Model 19 -0.20 [0.01, 0.34] -BF = 0.29 [0.03 -> 0.01] -BF = 0.33 [0.03 -> 0.01] -BF = 0.99 [0.01 -> 0.01] -BF = 0.88 [0.01 -> 0.01] -BF = 1.53 [0.01 -> 0.02] -BF = 0.89 [0.01 -> 0.01] -BF = 1.05 [0.01 -> 0.01] -BF = 0.94 [0.01 -> 0.01] -BF = 0.32 [0.12 -> 0.04] -BF = 1.21 [0.03 -> 0.04] -BF = 1.11 [0.03 -> 0.03] -BF = 2.83 [0.01 -> 0.03] -BF = 2.12 [0.01 -> 0.02] -BF = 3.98 [0.01 -> 0.04] -BF = 2.25 [0.01 -> 0.02] -BF = 3.57 [0.01 -> 0.04] -BF = 3.44 [0.01 -> 0.03] -BF = 1.36 [0.12 -> 0.16] +0.20 [0.01, 0.34] +BF = 0.29 [0.03 -> 0.01] +BF = 0.33 [0.03 -> 0.01] +BF = 0.99 [0.01 -> 0.01] +BF = 0.88 [0.01 -> 0.01] +BF = 1.53 [0.01 -> 0.02] +BF = 0.89 [0.01 -> 0.01] +BF = 1.05 [0.01 -> 0.01] +BF = 0.94 [0.01 -> 0.01] +BF = 0.32 [0.12 -> 0.04] +BF = 1.21 [0.03 -> 0.04] +BF = 1.11 [0.03 -> 0.03] +BF = 2.83 [0.01 -> 0.03] +BF = 2.12 [0.01 -> 0.02] +BF = 3.98 [0.01 -> 0.04] +BF = 2.25 [0.01 -> 0.02] +BF = 3.57 [0.01 -> 0.04] +BF = 3.44 [0.01 -> 0.03] +BF = 1.36 [0.12 -> 0.16] diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-conditional-heterogeneity-estimates.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-conditional-heterogeneity-estimates.svg index fe6ab64a..5672608a 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-conditional-heterogeneity-estimates.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-conditional-heterogeneity-estimates.svg @@ -99,7 +99,7 @@ - + @@ -124,25 +124,25 @@ Model 12 Model 11 Model 10 -0.15 [0.04, 0.42] -BF = 0.29 [0.03 -> 0.01] -BF = 0.33 [0.03 -> 0.01] -BF = 0.99 [0.01 -> 0.01] -BF = 0.88 [0.01 -> 0.01] -BF = 1.53 [0.01 -> 0.02] -BF = 0.89 [0.01 -> 0.01] -BF = 1.05 [0.01 -> 0.01] -BF = 0.94 [0.01 -> 0.01] -BF = 0.32 [0.12 -> 0.04] -BF = 0.76 [0.03 -> 0.02] -BF = 1.16 [0.03 -> 0.04] -BF = 2.39 [0.01 -> 0.02] -BF = 1.53 [0.01 -> 0.02] -BF = 4.89 [0.01 -> 0.05] -BF = 2.25 [0.01 -> 0.02] -BF = 1.23 [0.01 -> 0.01] -BF = 1.08 [0.01 -> 0.01] -BF = 0.14 [0.12 -> 0.02] +0.15 [0.04, 0.42] +BF = 0.29 [0.03 -> 0.01] +BF = 0.33 [0.03 -> 0.01] +BF = 0.99 [0.01 -> 0.01] +BF = 0.88 [0.01 -> 0.01] +BF = 1.53 [0.01 -> 0.02] +BF = 0.89 [0.01 -> 0.01] +BF = 1.05 [0.01 -> 0.01] +BF = 0.94 [0.01 -> 0.01] +BF = 0.32 [0.12 -> 0.04] +BF = 0.76 [0.03 -> 0.02] +BF = 1.16 [0.03 -> 0.04] +BF = 2.39 [0.01 -> 0.02] +BF = 1.53 [0.01 -> 0.02] +BF = 4.89 [0.01 -> 0.05] +BF = 2.25 [0.01 -> 0.02] +BF = 1.23 [0.01 -> 0.01] +BF = 1.08 [0.01 -> 0.01] +BF = 0.14 [0.12 -> 0.02] diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-effect-size-estimate.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-effect-size-estimate.svg index 90ff272b..0d158057 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-effect-size-estimate.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-effect-size-estimate.svg @@ -57,18 +57,18 @@ - - - - - - -0 -0.1 -0.2 -0.3 -0.4 -0.5 + + + + + + +0 +0.1 +0.2 +0.3 +0.4 +0.5 diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-forest-plot.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-forest-plot.svg index 255e79a5..83680802 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-forest-plot.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-forest-plot.svg @@ -39,7 +39,7 @@ - + @@ -49,10 +49,10 @@ Study 1 Study 2 Study 3 -0.11 [0.00, 0.31] -0.25 [0.05, 0.45] -0.20 [0.04, 0.36] -0.26 [0.06, 0.46] +0.11 [0.00, 0.31] +0.25 [0.05, 0.45] +0.20 [0.04, 0.36] +0.26 [0.06, 0.46] diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-heterogeneity-estimate.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-heterogeneity-estimate.svg index a7473da0..30e350cd 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-heterogeneity-estimate.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-heterogeneity-estimate.svg @@ -53,22 +53,22 @@ - - - - - - - - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 + + + + + + + + +0 +0.1 +0.2 +0.3 +0.4 +0.5 +0.6 +0.7 diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-pet-peese-regression-estimate.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-pet-peese-regression-estimate.svg index 1811ac34..75f78037 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-pet-peese-regression-estimate.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-pet-peese-regression-estimate.svg @@ -27,9 +27,9 @@ - + - + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-weight-function-estimate.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-weight-function-estimate.svg index b8eddb36..1d2dec28 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-weight-function-estimate.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-model-averaged-weight-function-estimate.svg @@ -27,9 +27,9 @@ - + - + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-1.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-1.svg index 9fdab00d..15edd1a9 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-1.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-1.svg @@ -27,37 +27,37 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-2.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-2.svg index 69a7b65c..ea9cf5ea 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-2.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-2.svg @@ -27,10 +27,10 @@ - - - - + + + + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-4.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-4.svg index ae4fde2a..bb283046 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-4.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-4.svg @@ -27,37 +27,37 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-5.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-5.svg index 80ce5932..95cde1fe 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-5.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-5.svg @@ -27,10 +27,10 @@ - - - - + + + + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-7.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-7.svg index fe4ab24a..b5a26960 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-7.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-7.svg @@ -27,37 +27,37 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-8.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-8.svg index ffe870fc..9f282fc7 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-8.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test2-titleless-plot-8.svg @@ -27,10 +27,10 @@ - - - - + + + + diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test3-conditional-effect-size-estimates.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test3-conditional-effect-size-estimates.svg index cb839c69..a8548251 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test3-conditional-effect-size-estimates.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test3-conditional-effect-size-estimates.svg @@ -99,7 +99,7 @@ - + @@ -124,25 +124,25 @@ Model 31 Model 32 Model 30 -0.03 [-0.35, 0.27] -BF = 1.25 [0.01 -> 0.01] -BF = 1.11 [0.01 -> 0.01] -BF = 0.79 [0.01 -> 0.01] -BF = 0.69 [0.01 -> 0.01] -BF = 0.57 [0.12 -> 0.07] -BF = 0.50 [0.03 -> 0.02] -BF = 0.43 [0.03 -> 0.01] -BF = 0.38 [0.01 -> 0.00] -BF = 0.36 [0.01 -> 0.00] -BF = 0.34 [0.12 -> 0.05] -BF = 0.31 [0.03 -> 0.01] -BF = 0.29 [0.01 -> 0.00] -BF = 0.27 [0.03 -> 0.01] -BF = 0.25 [0.01 -> 0.00] -BF = 0.21 [0.01 -> 0.00] -BF = 0.21 [0.01 -> 0.00] -BF = 0.16 [0.01 -> 0.00] -BF = 0.13 [0.01 -> 0.00] +0.03 [-0.35, 0.27] +BF = 1.25 [0.01 -> 0.01] +BF = 1.11 [0.01 -> 0.01] +BF = 0.79 [0.01 -> 0.01] +BF = 0.69 [0.01 -> 0.01] +BF = 0.57 [0.12 -> 0.07] +BF = 0.50 [0.03 -> 0.02] +BF = 0.43 [0.03 -> 0.01] +BF = 0.38 [0.01 -> 0.00] +BF = 0.36 [0.01 -> 0.00] +BF = 0.34 [0.12 -> 0.05] +BF = 0.31 [0.03 -> 0.01] +BF = 0.29 [0.01 -> 0.00] +BF = 0.27 [0.03 -> 0.01] +BF = 0.25 [0.01 -> 0.00] +BF = 0.21 [0.01 -> 0.00] +BF = 0.21 [0.01 -> 0.00] +BF = 0.16 [0.01 -> 0.00] +BF = 0.13 [0.01 -> 0.00] diff --git a/tests/testthat/_snaps/robustbayesianmetaanalysis/test3-conditional-forest-plot.svg b/tests/testthat/_snaps/robustbayesianmetaanalysis/test3-conditional-forest-plot.svg index 8772a311..2f6feb21 100644 --- a/tests/testthat/_snaps/robustbayesianmetaanalysis/test3-conditional-forest-plot.svg +++ b/tests/testthat/_snaps/robustbayesianmetaanalysis/test3-conditional-forest-plot.svg @@ -39,7 +39,7 @@ - + @@ -49,10 +49,10 @@ Study 3 Study 2 Study 1 -0.03 [-0.35, 0.27] -0.05 [-0.27, 0.36] -0.10 [-0.24, 0.42] -0.15 [-0.22, 0.48] +0.03 [-0.35, 0.27] +0.05 [-0.27, 0.36] +0.10 [-0.24, 0.42] +0.15 [-0.22, 0.48] diff --git a/tests/testthat/_snaps/selectionmodels/weight-function-fixed-effects-1.svg b/tests/testthat/_snaps/selectionmodels/weight-function-fixed-effects-1.svg index 0843167a..a7d0081d 100644 --- a/tests/testthat/_snaps/selectionmodels/weight-function-fixed-effects-1.svg +++ b/tests/testthat/_snaps/selectionmodels/weight-function-fixed-effects-1.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/selectionmodels/weight-function-fixed-effects-2.svg b/tests/testthat/_snaps/selectionmodels/weight-function-fixed-effects-2.svg index b5b8be68..f22690af 100644 --- a/tests/testthat/_snaps/selectionmodels/weight-function-fixed-effects-2.svg +++ b/tests/testthat/_snaps/selectionmodels/weight-function-fixed-effects-2.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/selectionmodels/weight-function-fixed-effects-3.svg b/tests/testthat/_snaps/selectionmodels/weight-function-fixed-effects-3.svg index c48a2bfa..8b1782f3 100644 --- a/tests/testthat/_snaps/selectionmodels/weight-function-fixed-effects-3.svg +++ b/tests/testthat/_snaps/selectionmodels/weight-function-fixed-effects-3.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/selectionmodels/weight-function-random-effects-1.svg b/tests/testthat/_snaps/selectionmodels/weight-function-random-effects-1.svg index 0cfca286..5869bc6c 100644 --- a/tests/testthat/_snaps/selectionmodels/weight-function-random-effects-1.svg +++ b/tests/testthat/_snaps/selectionmodels/weight-function-random-effects-1.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/selectionmodels/weight-function-random-effects-2.svg b/tests/testthat/_snaps/selectionmodels/weight-function-random-effects-2.svg index e4ec1503..d07d7d80 100644 --- a/tests/testthat/_snaps/selectionmodels/weight-function-random-effects-2.svg +++ b/tests/testthat/_snaps/selectionmodels/weight-function-random-effects-2.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/_snaps/selectionmodels/weight-function-random-effects-3.svg b/tests/testthat/_snaps/selectionmodels/weight-function-random-effects-3.svg index d93cfb3a..487c7324 100644 --- a/tests/testthat/_snaps/selectionmodels/weight-function-random-effects-3.svg +++ b/tests/testthat/_snaps/selectionmodels/weight-function-random-effects-3.svg @@ -27,7 +27,7 @@ - + diff --git a/tests/testthat/test-classicalpredictionperformance.R b/tests/testthat/test-classicalpredictionperformance.R index e6c5b848..67e924c3 100644 --- a/tests/testthat/test-classicalpredictionperformance.R +++ b/tests/testthat/test-classicalpredictionperformance.R @@ -91,89 +91,89 @@ test_that("Observed-Expected Ratio Meta-Analysis Summary table results match", { # OE: ML, Poisson/log (the most likely to break, treated differently internally in metamisc), no labels & no estimates in forest ---- -options <- analysisOptions("ClassicalPredictionPerformance") -options$exportColumns <- FALSE -options$forestPlot <- TRUE -options$forestPlotEstimates <- FALSE -options$forestPlotLabels <- FALSE -options$funnelAsymmetryTest <- TRUE -options$funnelAsymmetryTestDebrayFIV <- TRUE -options$funnelAsymmetryTestEggerFIV <- TRUE -options$funnelAsymmetryTestEggerUW <- TRUE -options$funnelAsymmetryTestMacaskillFIV <- TRUE -options$funnelAsymmetryTestMacaskillFPV <- TRUE -options$funnelAsymmetryTestPeters <- TRUE -options$funnelAsymmetryTestPlot <- TRUE -options$inputCI <- list() -options$inputE <- "e.events" -options$inputLabels <- "" -options$inputMeasure <- "" -options$inputN <- "n" -options$inputO <- "n.events" -options$inputSE <- "" -options$linkCstat <- "normal/logit" -options$linkOE <- "poisson/log" -options$measure <- "OE" -options$method <- "Maximum Likelihood" -options$priorAndPosteriorPlot <- FALSE -set.seed(1) -dataset <- EuroSCORE -results <- runAnalysis("ClassicalPredictionPerformance", dataset, options) - - -test_that("Forest plot matches", { - plotName <- results[["results"]][["forestPlot"]][["data"]] - testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]] - jaspTools::expect_equal_plots(testPlot, "forest-plot-2") -}) - -test_that("Debray plot matches", { - plotName <- results[["results"]][["funnelTestPlots"]][["collection"]][["funnelTestPlots_D-FIV"]][["data"]] - testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]] - jaspTools::expect_equal_plots(testPlot, "debray-2") -}) - -test_that("Egger (multiplicative overdispersion) plot matches", { - plotName <- results[["results"]][["funnelTestPlots"]][["collection"]][["funnelTestPlots_E-FIV"]][["data"]] - testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]] - jaspTools::expect_equal_plots(testPlot, "egger-multiplicative-overdispersion-2") -}) - -test_that("Egger (unweighted) plot matches", { - plotName <- results[["results"]][["funnelTestPlots"]][["collection"]][["funnelTestPlots_E-UW"]][["data"]] - testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]] - jaspTools::expect_equal_plots(testPlot, "egger-unweighted-2") -}) - -test_that("Macaskill plot matches", { - plotName <- results[["results"]][["funnelTestPlots"]][["collection"]][["funnelTestPlots_M-FIV"]][["data"]] - testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]] - jaspTools::expect_equal_plots(testPlot, "macaskill-2") -}) - -test_that("Peters plot matches", { - plotName <- results[["results"]][["funnelTestPlots"]][["collection"]][["funnelTestPlots_P-FPV"]][["data"]] - testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]] - jaspTools::expect_equal_plots(testPlot, "peters-2") -}) - -test_that("Funnel Plot Asymmetry Tests table results match", { - table <- results[["results"]][["funnelTestTable"]][["data"]] - jaspTools::expect_equal_tables(table, - list(21, "Egger (unweighted)", 0.0909012086250035, 1.7720228302703, - 21, "Egger (multiplicative overdispersion)", 0.0959248852877291, - 1.74319233389244, 21, "Macaskill", 0.633390338535319, -0.484006527182122, - 21, "Macaskill (pooled)", 0.37304065796014, -0.910211248058727, - 21, "Peters", 0.21186251897657, 1.28769520389975, 21, "Debray", - 0.78461295998471, -0.276835538099372)) -}) - -test_that("Observed-Expected Ratio Meta-Analysis Summary table results match", { - table <- results[["results"]][["summaryTable"]][["data"]] - jaspTools::expect_equal_tables(table, - list(1.08905040321886, 0.90027797667204, 0.44497408140484, 1.32538728478191, - 2.66539295279114)) -}) +# options <- analysisOptions("ClassicalPredictionPerformance") +# options$exportColumns <- FALSE +# options$forestPlot <- TRUE +# options$forestPlotEstimates <- FALSE +# options$forestPlotLabels <- FALSE +# options$funnelAsymmetryTest <- TRUE +# options$funnelAsymmetryTestDebrayFIV <- TRUE +# options$funnelAsymmetryTestEggerFIV <- TRUE +# options$funnelAsymmetryTestEggerUW <- TRUE +# options$funnelAsymmetryTestMacaskillFIV <- TRUE +# options$funnelAsymmetryTestMacaskillFPV <- TRUE +# options$funnelAsymmetryTestPeters <- TRUE +# options$funnelAsymmetryTestPlot <- TRUE +# options$inputCI <- list() +# options$inputE <- "e.events" +# options$inputLabels <- "" +# options$inputMeasure <- "" +# options$inputN <- "n" +# options$inputO <- "n.events" +# options$inputSE <- "" +# options$linkCstat <- "normal/logit" +# options$linkOE <- "poisson/log" +# options$measure <- "OE" +# options$method <- "Maximum Likelihood" +# options$priorAndPosteriorPlot <- FALSE +# set.seed(1) +# dataset <- EuroSCORE +# results <- runAnalysis("ClassicalPredictionPerformance", dataset, options) +# +# +# test_that("Forest plot matches", { +# plotName <- results[["results"]][["forestPlot"]][["data"]] +# testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]] +# jaspTools::expect_equal_plots(testPlot, "forest-plot-2") +# }) +# +# test_that("Debray plot matches", { +# plotName <- results[["results"]][["funnelTestPlots"]][["collection"]][["funnelTestPlots_D-FIV"]][["data"]] +# testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]] +# jaspTools::expect_equal_plots(testPlot, "debray-2") +# }) +# +# test_that("Egger (multiplicative overdispersion) plot matches", { +# plotName <- results[["results"]][["funnelTestPlots"]][["collection"]][["funnelTestPlots_E-FIV"]][["data"]] +# testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]] +# jaspTools::expect_equal_plots(testPlot, "egger-multiplicative-overdispersion-2") +# }) +# +# test_that("Egger (unweighted) plot matches", { +# plotName <- results[["results"]][["funnelTestPlots"]][["collection"]][["funnelTestPlots_E-UW"]][["data"]] +# testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]] +# jaspTools::expect_equal_plots(testPlot, "egger-unweighted-2") +# }) +# +# test_that("Macaskill plot matches", { +# plotName <- results[["results"]][["funnelTestPlots"]][["collection"]][["funnelTestPlots_M-FIV"]][["data"]] +# testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]] +# jaspTools::expect_equal_plots(testPlot, "macaskill-2") +# }) +# +# test_that("Peters plot matches", { +# plotName <- results[["results"]][["funnelTestPlots"]][["collection"]][["funnelTestPlots_P-FPV"]][["data"]] +# testPlot <- results[["state"]][["figures"]][[plotName]][["obj"]] +# jaspTools::expect_equal_plots(testPlot, "peters-2") +# }) +# +# test_that("Funnel Plot Asymmetry Tests table results match", { +# table <- results[["results"]][["funnelTestTable"]][["data"]] +# jaspTools::expect_equal_tables(table, +# list(21, "Egger (unweighted)", 0.0909012086250035, 1.7720228302703, +# 21, "Egger (multiplicative overdispersion)", 0.0959248852877291, +# 1.74319233389244, 21, "Macaskill", 0.633390338535319, -0.484006527182122, +# 21, "Macaskill (pooled)", 0.37304065796014, -0.910211248058727, +# 21, "Peters", 0.21186251897657, 1.28769520389975, 21, "Debray", +# 0.78461295998471, -0.276835538099372)) +# }) +# +# test_that("Observed-Expected Ratio Meta-Analysis Summary table results match", { +# table <- results[["results"]][["summaryTable"]][["data"]] +# jaspTools::expect_equal_tables(table, +# list(1.08905040321886, 0.90027797667204, 0.44497408140484, 1.32538728478191, +# 2.66539295279114)) +# }) # cstat: FE, Normal/logit (with CI) ----