Skip to content

Commit 3ae2100

Browse files
CopilotFBartos
andcommitted
Add standardError checkbox and update dependencies
Co-authored-by: FBartos <[email protected]>
1 parent 624b842 commit 3ae2100

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

R/classicalmetaanalysiscommon.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ ClassicalMetaAnalysisCommon <- function(jaspResults, dataset, options, ...) {
859859
pooledEstimatesTable$position <- 4
860860
pooledEstimatesTable$dependOn(c("heterogeneityTau", "heterogeneityTau2", "heterogeneityI2", "heterogeneityH2",
861861
"confidenceIntervals", "confidenceIntervalsLevel", "predictionIntervals", "transformEffectSize",
862-
"includeFullDatasetInSubgroupAnalysis"))
862+
"standardError", "includeFullDatasetInSubgroupAnalysis"))
863863
modelSummaryContainer[["pooledEstimatesTable"]] <- pooledEstimatesTable
864864

865865
pooledEstimatesTable$addColumnInfo(name = "par", type = "string", title = "")
@@ -1331,7 +1331,7 @@ ClassicalMetaAnalysisCommon <- function(jaspResults, dataset, options, ...) {
13311331
estimatedMarginalMeansTable$dependOn(c(switch(
13321332
parameter,
13331333
effectSize = c("estimatedMarginalMeansEffectSize", "estimatedMarginalMeansEffectSizeSdFactorCovariates", "estimatedMarginalMeansEffectSizeTestAgainst",
1334-
"estimatedMarginalMeansEffectSizeTestAgainstValue", "transformEffectSize", "predictionIntervals"),
1334+
"estimatedMarginalMeansEffectSizeTestAgainstValue", "transformEffectSize", "predictionIntervals", "standardError"),
13351335
heterogeneity = c("estimatedMarginalMeansHeterogeneity", "estimatedMarginalMeansHeterogeneityTransformation", "estimatedMarginalMeansHeterogeneitySdFactorCovariates")
13361336
)))
13371337
variableContainer[["estimatedMarginalMeansTable"]] <- estimatedMarginalMeansTable
@@ -1394,7 +1394,7 @@ ClassicalMetaAnalysisCommon <- function(jaspResults, dataset, options, ...) {
13941394
contrastsTable$position <- 1
13951395
contrastsTable$dependOn(switch(
13961396
parameter,
1397-
effectSize = c("contrastsEffectSize", "contrastsEffectSizePValueAdjustment", "predictionIntervals", "transformEffectSize"),
1397+
effectSize = c("contrastsEffectSize", "contrastsEffectSizePValueAdjustment", "predictionIntervals", "transformEffectSize", "standardError"),
13981398
heterogeneity = c("contrastsHeterogeneity", "contrastsHeterogeneityPValueAdjustment", "estimatedMarginalMeansHeterogeneityTransformation")
13991399
))
14001400
variableContainer[["contrastsTable"]] <- contrastsTable
@@ -4723,7 +4723,7 @@ ClassicalMetaAnalysisCommon <- function(jaspResults, dataset, options, ...) {
47234723
}
47244724
.maAddSeColumn <- function(tempTable, options) {
47254725

4726-
if (options[["transformEffectSize"]] == "none") {
4726+
if (options[["standardError"]] && options[["transformEffectSize"]] == "none") {
47274727
tempTable$addColumnInfo(name = "se", title = gettext("Standard Error"), type = "number")
47284728
}
47294729

inst/qml/qml_components/ClassicalMetaAnalysisStatistics.qml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,14 @@ Section
141141
}
142142
}
143143

144+
CheckBox
145+
{
146+
text: qsTr("Standard errors")
147+
name: "standardError"
148+
checked: true
149+
info: qsTr("Include standard errors in the tabular output. Only available when no effect size transformation is applied.")
150+
}
151+
144152
CheckBox
145153
{
146154
text: qsTr("Prediction intervals")

0 commit comments

Comments
 (0)