Skip to content

Commit

Permalink
computedcolumnsNamesEffectSize -> computedColumnsNamesEffectSize
Browse files Browse the repository at this point in the history
  • Loading branch information
FBartos committed Nov 6, 2024
1 parent 304d88a commit 7a10472
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions R/effectsizecomputation.R
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ EffectSizeComputation <- function(jaspResults, dataset, options, state = NULL) {

# columns to add
if (options[["computeSamplingVariance"]]) {
columnOptions <- c("computedcolumnsNamesEffectSize", "computedcolumnsNamesSamplingVariance", "computedcolumnsNamesEffectSizeType")
columnOptions <- c("computedColumnsNamesEffectSize", "computedcolumnsNamesSamplingVariance", "computedColumnsNamesEffectSizeType")
} else {
columnOptions <- c("computedcolumnsNamesEffectSize", "computedcolumnsNamesStandardError", "computedcolumnsNamesEffectSizeType")
columnOptions <- c("computedColumnsNamesEffectSize", "computedcolumnsNamesStandardError", "computedColumnsNamesEffectSizeType")
}

for (column in columnOptions) {
Expand All @@ -158,10 +158,10 @@ EffectSizeComputation <- function(jaspResults, dataset, options, state = NULL) {
jaspResults[[column]] <- createJaspColumn(columnName = columnName, dependencies = c("effectSizeType", "variables", column))
jaspResults[[column]]$setScale(switch(
column,
"computedcolumnsNamesEffectSize" = dataOutput[["yi"]],
"computedColumnsNamesEffectSize" = dataOutput[["yi"]],
"computedcolumnsNamesStandardError" = sqrt(dataOutput[["vi"]]),
"computedcolumnsNamesSamplingVariance" = dataOutput[["vi"]],
"computedcolumnsNamesEffectSizeType" = dataOutput[["measure"]]
"computedColumnsNamesEffectSizeType" = dataOutput[["measure"]]
))

}
Expand Down
6 changes: 3 additions & 3 deletions inst/qml/EffectSizeComputation.qml
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ Form

TextField
{
name: "computedcolumnsNamesEffectSize"
name: "computedColumnsNamesEffectSize"
label: qsTr("Effect size")
defaultValue: "computed effect size"
}
Expand All @@ -1050,7 +1050,7 @@ Form

TextField
{
name: "computedcolumnsNamesEffectSizeType"
name: "computedColumnsNamesEffectSizeType"
label: qsTr("Effect size type")
defaultValue: "computed effect size type"
}
Expand All @@ -1059,4 +1059,4 @@ Form

}

}
}

0 comments on commit 7a10472

Please sign in to comment.