Skip to content

Commit

Permalink
add proper sidedness labels
Browse files Browse the repository at this point in the history
  • Loading branch information
FBartos committed Nov 18, 2024
1 parent 1ddf8d5 commit 3eb9a18
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion inst/qml/bffOneSampleTTest.qml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ Form {
}
}*/

BFF.Analysis{}
BFF.Analysis{oneSampleTest: true}
BFF.Priors{}
}
2 changes: 1 addition & 1 deletion inst/qml/bffOneSampleZTest.qml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ Form {
}
}*/

BFF.Analysis{}
BFF.Analysis{oneSampleTest: true}
BFF.Priors{}
}
9 changes: 5 additions & 4 deletions inst/qml/qml_components/Analysis.qml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ import JASP 1.0

Section
{
property bool directionalTest: true
property bool directionalTest: true
property bool oneSampleTest: false

expanded: true
title: qsTr("Analysis")
Expand All @@ -35,9 +36,9 @@ Section
name: "alternativeHypothesis"
title: qsTr("Alternative Hypothesis")
visible: directionalTest
RadioButton { value: "equal"; label: qsTr("Group 1 ≠ Group 2"); checked: true }
RadioButton { value: "greater"; label: qsTr("Group 1 > Group 2")}
RadioButton { value: "less"; label: qsTr("Group 1 < Group 2")}
RadioButton { value: "equal"; label: oneSampleTest ? qsTr("Group 1 ≠ 0") : qsTr("Group 1 ≠ Group 2"); checked: true }
RadioButton { value: "greater"; label: oneSampleTest ? qsTr("Group 1 > 0") : qsTr("Group 1 > Group 2")}
RadioButton { value: "less"; label: oneSampleTest ? qsTr("Group 1 < 0") : qsTr("Group 1 < Group 2")}
}

BayesFactorType { }
Expand Down

0 comments on commit 3eb9a18

Please sign in to comment.