From 19eb011cb1f48ad7d89ac5af7a103fc394050d32 Mon Sep 17 00:00:00 2001 From: Joaquin Date: Mon, 25 Nov 2024 12:10:02 +0100 Subject: [PATCH 01/21] Adding independent T-test module help file --- inst/qml/TTestIndependentSamples.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/inst/qml/TTestIndependentSamples.qml b/inst/qml/TTestIndependentSamples.qml index cc723c9f..77ffc58b 100644 --- a/inst/qml/TTestIndependentSamples.qml +++ b/inst/qml/TTestIndependentSamples.qml @@ -24,6 +24,7 @@ import "./common" as Common Form { + info: qsTr("The independent samples t-test allows the user to estimate the effect size and test the null hypothesis that the population means of two independent groups are equal.") id: form property int framework: Common.Type.Framework.Classical From 7b1b7d2a0259e9143d3fc483f9f84830d7bb7e26 Mon Sep 17 00:00:00 2001 From: Joaquin Date: Wed, 27 Nov 2024 16:13:53 +0100 Subject: [PATCH 02/21] Add help file to variable boxes for independent sample t test. --- inst/qml/TTestIndependentSamples.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inst/qml/TTestIndependentSamples.qml b/inst/qml/TTestIndependentSamples.qml index 77ffc58b..07bc9013 100644 --- a/inst/qml/TTestIndependentSamples.qml +++ b/inst/qml/TTestIndependentSamples.qml @@ -37,8 +37,8 @@ Form { preferredHeight: jaspTheme.smallDefaultVariablesFormHeight AvailableVariablesList { name: "allVariablesList" } - AssignedVariablesList { name: "dependent"; title: qsTr("Dependent Variables"); allowedColumns: ["scale"]; minNumericLevels: 2} - AssignedVariablesList { name: "group"; title: qsTr("Grouping Variable"); allowedColumns: ["nominal"]; minLevels: 2; maxLevels: 2; singleVariable: true } + AssignedVariablesList { name: "dependent"; title: qsTr("Dependent Variables"); info: qsTr("In this box the dependent variable is selected"); allowedColumns: ["scale"]; minNumericLevels: 2} + AssignedVariablesList { name: "group"; title: qsTr("Grouping Variable"); info: qsTr("In this box the variable defining the groups is selected. e.g experimental condition"); allowedColumns: ["nominal"]; minLevels: 2; maxLevels: 2; singleVariable: true } } Group From 35b16ecd93a84925017efb2a3d0d3c84bb08284a Mon Sep 17 00:00:00 2001 From: Joaquin Date: Wed, 27 Nov 2024 16:34:58 +0100 Subject: [PATCH 03/21] Add help file to Student, Welch, and Mann-Whitney tests. --- inst/qml/TTestIndependentSamples.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inst/qml/TTestIndependentSamples.qml b/inst/qml/TTestIndependentSamples.qml index 07bc9013..57925eb2 100644 --- a/inst/qml/TTestIndependentSamples.qml +++ b/inst/qml/TTestIndependentSamples.qml @@ -44,9 +44,9 @@ Form Group { title: qsTr("Tests") - CheckBox { name: "student"; label: qsTr("Student"); checked: true } - CheckBox { name: "welch"; label: qsTr("Welch") } - CheckBox { name: "mannWhitneyU"; label: qsTr("Mann-Whitney") } + CheckBox { name: "student"; label: qsTr("Student"); info: qsTr("Good old fashioned T-test. Selecetd by default".); checked: true } + CheckBox { name: "welch"; label: qsTr("Welch"); info: qsTr("Use when variances are not equally distributed accross groups"); } + CheckBox { name: "mannWhitneyU"; label: qsTr("Mann-Whitney"); info:qsTr("Non-parametric independent T-test. Use when data is not normally distributed"); } } Group From 7fba65290240f138531b375ed59f3d528357f23f Mon Sep 17 00:00:00 2001 From: Joaquin Date: Wed, 27 Nov 2024 16:50:07 +0100 Subject: [PATCH 04/21] Add help file to alternative hypotheses. --- inst/qml/TTestIndependentSamples.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inst/qml/TTestIndependentSamples.qml b/inst/qml/TTestIndependentSamples.qml index 57925eb2..b4e0539b 100644 --- a/inst/qml/TTestIndependentSamples.qml +++ b/inst/qml/TTestIndependentSamples.qml @@ -87,9 +87,9 @@ Form { name: "alternative" title: qsTr("Alternative Hypothesis") - RadioButton { value: "twoSided"; 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: "twoSided"; label: qsTr("Group 1 ≠ Group 2"); info: qsTr("Two-sided alternative hypothesis that the population means are not equal. Selected by default."); checked: true } + RadioButton { value: "greater"; label: qsTr("Group 1 > Group 2"); info: qsTr("One-sided alternative hypothesis that the population mean of Group 1 is larger than the population mean of Group 2."); } + RadioButton { value: "less"; label: qsTr("Group 1 < Group 2"); info: qsTr("One-sided alternative hypothesis that the population mean of Group 1 is smaller than the population mean of Group 2."); } } Group From 1577f50ee690c5d17757635ae22206f88581632e Mon Sep 17 00:00:00 2001 From: Joaquin Date: Wed, 27 Nov 2024 17:16:08 +0100 Subject: [PATCH 05/21] Add help file to assumption checks. --- inst/qml/TTestIndependentSamples.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inst/qml/TTestIndependentSamples.qml b/inst/qml/TTestIndependentSamples.qml index b4e0539b..e766a14b 100644 --- a/inst/qml/TTestIndependentSamples.qml +++ b/inst/qml/TTestIndependentSamples.qml @@ -95,10 +95,10 @@ Form Group { title: qsTr("Assumption Checks") - CheckBox { name: "normalityTest"; label: qsTr("Normality") } + CheckBox { name: "normalityTest"; label: qsTr("Normality"); info: qsTr("Shapiro-Wilk test of normality."); } CheckBox { - name: "equalityOfVariancesTest"; label: qsTr("Equality of variances") + name: "equalityOfVariancesTest"; label: qsTr("Equality of variances"); info: qsTr("BrownForsythe or Levene's tests to check if variances are qually distributed accross groups") RadioButtonGroup { name: "equalityOfVariancesTestType" @@ -106,7 +106,7 @@ Form RadioButton { value: "levene"; label: qsTr("Levene's") } } } - CheckBox { name: "qqPlot"; label: qsTr("Q-Q plot residuals") } + CheckBox { name: "qqPlot"; label: qsTr("Q-Q plot residuals"); info: qsTr("Displays Q-Q plot of the standardized residuals.") } } Group { From 70b1d5c5f6bf2209e12c7ac51ea316c2459ba2ac Mon Sep 17 00:00:00 2001 From: Joaquin Date: Wed, 4 Dec 2024 14:57:48 +0100 Subject: [PATCH 06/21] Add help file to location parameter and fixed typo --- inst/qml/TTestIndependentSamples.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inst/qml/TTestIndependentSamples.qml b/inst/qml/TTestIndependentSamples.qml index e766a14b..66f1d742 100644 --- a/inst/qml/TTestIndependentSamples.qml +++ b/inst/qml/TTestIndependentSamples.qml @@ -44,7 +44,7 @@ Form Group { title: qsTr("Tests") - CheckBox { name: "student"; label: qsTr("Student"); info: qsTr("Good old fashioned T-test. Selecetd by default".); checked: true } + CheckBox { name: "student"; label: qsTr("Student"); info: qsTr("Good old fashioned T-test. Selected by default"); checked: true } CheckBox { name: "welch"; label: qsTr("Welch"); info: qsTr("Use when variances are not equally distributed accross groups"); } CheckBox { name: "mannWhitneyU"; label: qsTr("Mann-Whitney"); info:qsTr("Non-parametric independent T-test. Use when data is not normally distributed"); } } @@ -55,10 +55,10 @@ Form Layout.rowSpan: 2 CheckBox { - name: "meanDifference"; label: qsTr("Location parameter") + name: "meanDifference"; label: qsTr("Location parameter"); info: qsTr(" For the Student's t-test and Welch's t-test, the location parameter is given by mean difference; for the Mann-Whitney test, the location parameter is given by the Hodges-Lehmann estimate.") CheckBox { - name: "meanDifferenceCi"; label: qsTr("Confidence interval") + name: "meanDifferenceCi"; label: qsTr("Confidence interval"); info: qsTr(" Confidence interval for the location parameter. By default, the confidence interval is set to 95%. This can be changed into the desired percentage.") childrenOnSameRow: true CIField { name: "meanDifferenceCiLevel" } } From 88af2ca1ab5a034e4ff2a463532baf0aa9449e9e Mon Sep 17 00:00:00 2001 From: Joaquin Date: Wed, 4 Dec 2024 15:10:58 +0100 Subject: [PATCH 07/21] Add help file to effect sizes --- inst/qml/TTestIndependentSamples.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inst/qml/TTestIndependentSamples.qml b/inst/qml/TTestIndependentSamples.qml index 66f1d742..84aba26f 100644 --- a/inst/qml/TTestIndependentSamples.qml +++ b/inst/qml/TTestIndependentSamples.qml @@ -65,15 +65,15 @@ Form } CheckBox { - name: "effectSize"; label: qsTr("Effect size") + name: "effectSize"; label: qsTr("Effect size"); info: qsTr(" For the Student t-test and Welch t-test, the effect size can be selected below; for the Mann-Whitney test, the effect size is given by the rank biserial correlation.") RadioButtonGroup { - name: "effectSizeType"; - RadioButton { value: "cohen"; label: qsTr("Cohen's d") ; checked: true } - RadioButton { value: "glass"; label: qsTr("Glass' delta") } - RadioButton { value: "hedges"; label: qsTr("Hedges' g") } + name: "effectSizeType" + RadioButton { value: "cohen"; label: qsTr("Cohen's d") ; checked: true ; info: qsTr("For the Student's t-test, uses the pooled standard deviation to standardize the mean difference. For the Welch's t-test, uses the square-root of the average variance to standardize the mean difference.")} + RadioButton { value: "glass"; label: qsTr("Glass' delta") ; info: qsTr("Uses the standard deviation of group 2 to standardize the mean difference. In order to change which group is used as group 2, you can change the order of the levels by clicking on the name of the grouping variable in the data window, click on one of the levels and then click the arrow buttons to switch the order.")} + RadioButton { value: "hedges"; label: qsTr("Hedges' g") ; info: qsTr("Applies a correction factor to Cohen's d to make it unbiased.") } CheckBox { - name: "effectSizeCi"; label: qsTr("Confidence interval") + name: "effectSizeCi"; label: qsTr("Confidence interval"); info: qsTr("Confidence interval for the effect size based on the non-central t-distribution for Cohen's d, Glass' delta and Hedges' g, and normal approximation of the Fisher transformed rank biserial correlation.") childrenOnSameRow: true PercentField { name: "effectSizeCiLevel"; defaultValue: 95 } } From 6e938bf733abc4e400db27007ddd78366e877baf Mon Sep 17 00:00:00 2001 From: Joaquin Date: Wed, 4 Dec 2024 15:59:03 +0100 Subject: [PATCH 08/21] Add help file for descriptives and vovk-Sellke max p ratio --- inst/qml/TTestIndependentSamples.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inst/qml/TTestIndependentSamples.qml b/inst/qml/TTestIndependentSamples.qml index 84aba26f..f12f4250 100644 --- a/inst/qml/TTestIndependentSamples.qml +++ b/inst/qml/TTestIndependentSamples.qml @@ -79,8 +79,8 @@ Form } } } - CheckBox { name: "descriptives"; label: qsTr("Descriptives") } - CheckBox { name: "vovkSellke"; label: qsTr("Vovk-Sellke maximum p-ratio") } + CheckBox { name: "descriptives"; label: qsTr("Descriptives") ; info: qsTr("Sample size, sample mean, sample standard deviation, standard error of the mean for each group.") } + CheckBox { name: "vovkSellke"; label: qsTr("Vovk-Sellke maximum p-ratio"); info: qsTr("Shows the maximum ratio of the lieklihood of the obtained p value under the alternative hypothesis vs the likelihood of the obtained p value under the null hypothesis") } } RadioButtonGroup From 4048c488e92019d678c58b9dbb53e44f9b356550 Mon Sep 17 00:00:00 2001 From: Joaquin Date: Wed, 4 Dec 2024 16:02:20 +0100 Subject: [PATCH 09/21] Fixed previous change --- inst/qml/TTestIndependentSamples.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/qml/TTestIndependentSamples.qml b/inst/qml/TTestIndependentSamples.qml index f12f4250..cae317f2 100644 --- a/inst/qml/TTestIndependentSamples.qml +++ b/inst/qml/TTestIndependentSamples.qml @@ -80,7 +80,7 @@ Form } } CheckBox { name: "descriptives"; label: qsTr("Descriptives") ; info: qsTr("Sample size, sample mean, sample standard deviation, standard error of the mean for each group.") } - CheckBox { name: "vovkSellke"; label: qsTr("Vovk-Sellke maximum p-ratio"); info: qsTr("Shows the maximum ratio of the lieklihood of the obtained p value under the alternative hypothesis vs the likelihood of the obtained p value under the null hypothesis") } + CheckBox { name: "vovkSellke"; label: qsTr("Vovk-Sellke maximum p-ratio"); info: qsTr("Shows the maximum ratio of the lieklihood of the obtained p value under H1 vs the likelihood of the obtained p value under H0. For example, if the two-sided p-value equals .05, the Vovk-Sellke MPR equals 2.46, indicating that this p-value is at most 2.46 times more likely to occur under H1 than under H0.") } } RadioButtonGroup From 0764a7962e74e4107bd71b6bbc63eaa6dbfb63ff Mon Sep 17 00:00:00 2001 From: Joaquin Date: Wed, 4 Dec 2024 16:18:13 +0100 Subject: [PATCH 10/21] Add help file to plots and missing values --- inst/qml/TTestIndependentSamples.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inst/qml/TTestIndependentSamples.qml b/inst/qml/TTestIndependentSamples.qml index cae317f2..40499e05 100644 --- a/inst/qml/TTestIndependentSamples.qml +++ b/inst/qml/TTestIndependentSamples.qml @@ -114,13 +114,13 @@ Form Layout.rowSpan: 2 CheckBox { - name: "descriptivesPlot"; label: qsTr("Descriptives plots") - CIField { name: "descriptivesPlotCiLevel"; label: qsTr("Confidence interval") } + name: "descriptivesPlot"; label: qsTr("Descriptives plots") ; info: qsTr("Displays the sample means and the confidence intervals for each group.") + CIField { name: "descriptivesPlotCiLevel"; label: qsTr("Confidence interval") ; info: qsTr(" Coverage of the confidence intervals in percentages. By default, the confidence interval is set to 95%. This can be changeed into the desired percentage.") } } CheckBox { - name: "raincloudPlot"; label: qsTr("Raincloud plots") - CheckBox { name: "raincloudPlotHorizontal"; label: qsTr("Horizontal display") } + name: "raincloudPlot"; label: qsTr("Raincloud plots") ; info: qsTr("Displays the individual cases (colored dots), box plots, and densities for each group.") + CheckBox { name: "raincloudPlotHorizontal"; label: qsTr("Horizontal display") ; info: qsTr("Changes the orientation of the raincloud plot so that the x-axis represents the dependent variable and the y-axis the grouping variable.") } } Common.BarPlots { @@ -131,7 +131,7 @@ Form { name: "naAction" title: qsTr("Missing Values") - RadioButton { value: "perDependent"; label: qsTr("Exclude cases per dependent variable"); checked: true } - RadioButton { value: "listwise"; label: qsTr("Exclude cases listwise") } + RadioButton { value: "perDependent"; label: qsTr("Exclude cases per dependent variable"); info: qsTr("Exclude cases per dependent variable: In case of multiple t-tests within a single analysis, each test will be conducted using all cases with valid data for the dependent variable for the particular t-test. Sample sizes may therefore vary across the tests. This options is selected by default.") ; checked: true } + RadioButton { value: "listwise"; label: qsTr("Exclude cases listwise") ; info: qsTr("In case of multiple t-tests within a single analysis, each t-test will be conducted using only cases with valid data for all dependent variables. Sample size is therefore constant across the tests.") } } } From 894b32e0fe859dac0c8cfdab1aa3bf840a22d2a3 Mon Sep 17 00:00:00 2001 From: Joaquin Date: Mon, 23 Dec 2024 20:57:12 +0100 Subject: [PATCH 11/21] Finished independent t-test and start adding help files to paired samples t-test --- inst/qml/TTestIndependentSamples.qml | 3 ++- inst/qml/TTestPairedSamples.qml | 19 ++++++++++--------- inst/qml/common/BarPlots.qml | 6 +++--- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/inst/qml/TTestIndependentSamples.qml b/inst/qml/TTestIndependentSamples.qml index 40499e05..ad3f2ccb 100644 --- a/inst/qml/TTestIndependentSamples.qml +++ b/inst/qml/TTestIndependentSamples.qml @@ -123,7 +123,8 @@ Form CheckBox { name: "raincloudPlotHorizontal"; label: qsTr("Horizontal display") ; info: qsTr("Changes the orientation of the raincloud plot so that the x-axis represents the dependent variable and the y-axis the grouping variable.") } } Common.BarPlots - { + { + framework: form.framework } } diff --git a/inst/qml/TTestPairedSamples.qml b/inst/qml/TTestPairedSamples.qml index e53b98e8..83415f13 100644 --- a/inst/qml/TTestPairedSamples.qml +++ b/inst/qml/TTestPairedSamples.qml @@ -24,6 +24,7 @@ import "./common" as Common Form { + info: qsTr("The paired samples t-test allows the user to estimate the effect size and test the null hypothesis that the population mean of the difference between observations equals 0 in dependent groups.") id: form property int framework: Common.Type.Framework.Classical @@ -33,15 +34,15 @@ Form VariablesForm { preferredHeight: jaspTheme.smallDefaultVariablesFormHeight - AvailableVariablesList { name: "allVariablesList" } - AssignedPairsVariablesList { name: "pairs"; title: qsTr("Variable Pairs"); allowedColumns: ["scale"]; minNumericLevels: 2 } + AvailableVariablesList { name: "allVariablesList"; info: qsTr("All variables are displayed here. Drag the relevant variables for the analysis to the variable pairs box.") } + AssignedPairsVariablesList { name: "pairs"; title: qsTr("Variable Pairs"); info: qsTr("The variables here have their difference computed. Multiple differences can be analysed at the same time by specifying different rows. In other words, each row represents a difference score."); allowedColumns: ["scale"]; minNumericLevels: 2 } } Group { title: qsTr("Tests") - CheckBox { name: "student"; label: qsTr("Student"); checked: true } - CheckBox { name: "wilcoxon"; label: qsTr("Wilcoxon signed-rank") } + CheckBox { name: "student"; label: qsTr("Student"); info: qsTr("Student's paired sample t-test.This option is selected by default"); checked: true } + CheckBox { name: "wilcoxon"; label: qsTr("Wilcoxon signed-rank"); info: ("Non-parametric version of paired samples t-test. Use when data is not normally distributed.") } } Group @@ -81,16 +82,16 @@ Form { name: "alternative" title: qsTr("Alternative Hypothesis") - RadioButton { value: "twoSided"; label: qsTr("Measure 1 ≠ Measure 2"); checked: true } - RadioButton { value: "greater"; label: qsTr("Measure 1 > Measure 2"); } - RadioButton { value: "less"; label: qsTr("Measure 1 < Measure 2"); } + RadioButton { value: "twoSided"; label: qsTr("Measure 1 ≠ Measure 2"); info: qsTr("Two-sided alternative hypothesis that the population mean of the difference is not equal to 0. This option is selected by default."); checked: true } + RadioButton { value: "greater"; label: qsTr("Measure 1 > Measure 2"); info: qsTr(" One-sided alternative hypothesis that the population mean of the difference is larger than 0.") } + RadioButton { value: "less"; label: qsTr("Measure 1 < Measure 2"); info: qsTr("One sided alternative hypothesis that the population mean of the difference is smaller than 0.") } } Group { title: qsTr("Assumption Checks") - CheckBox { name: "normalityTest"; label: qsTr("Normality") } - CheckBox { name: "qqPlot"; label: qsTr("Q-Q plot residuals") } + CheckBox { name: "normalityTest"; label: qsTr("Normality"); info: qsTr("Shapiro-Wilk test of normality.") } + CheckBox { name: "qqPlot"; label: qsTr("Q-Q plot residuals"); info: qsTr("Q-Q plot of the standardized residuals.") } } diff --git a/inst/qml/common/BarPlots.qml b/inst/qml/common/BarPlots.qml index d116fed4..51a69d82 100644 --- a/inst/qml/common/BarPlots.qml +++ b/inst/qml/common/BarPlots.qml @@ -39,10 +39,10 @@ CheckBox checked: true childrenOnSameRow: true - CIField { name: "barPlotCiLevel" } + CIField { name: "barPlotCiLevel"} } - RadioButton { value: "se"; label: qsTr("Standard error") } + RadioButton { value: "se"; label: qsTr("Standard error"); } } - CheckBox { name: "barPlotYAxisFixedToZero"; label: qsTr("Fix horizontal axis to 0"); checked: true } + CheckBox { name: "barPlotYAxisFixedToZero"; label: qsTr("Fix horizontal axis to 0"); checked: true } } From 92d9d04719513fe1cee3716cc2306b4ccb7dcb56 Mon Sep 17 00:00:00 2001 From: Joaquin Date: Mon, 23 Dec 2024 20:57:12 +0100 Subject: [PATCH 12/21] Finished independent t-test and start adding help files to paired samples t-test --- inst/qml/TTestIndependentSamples.qml | 3 ++- inst/qml/TTestPairedSamples.qml | 21 +++++++++++---------- inst/qml/common/BarPlots.qml | 6 +++--- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/inst/qml/TTestIndependentSamples.qml b/inst/qml/TTestIndependentSamples.qml index 40499e05..ad3f2ccb 100644 --- a/inst/qml/TTestIndependentSamples.qml +++ b/inst/qml/TTestIndependentSamples.qml @@ -123,7 +123,8 @@ Form CheckBox { name: "raincloudPlotHorizontal"; label: qsTr("Horizontal display") ; info: qsTr("Changes the orientation of the raincloud plot so that the x-axis represents the dependent variable and the y-axis the grouping variable.") } } Common.BarPlots - { + { + framework: form.framework } } diff --git a/inst/qml/TTestPairedSamples.qml b/inst/qml/TTestPairedSamples.qml index e53b98e8..a682304b 100644 --- a/inst/qml/TTestPairedSamples.qml +++ b/inst/qml/TTestPairedSamples.qml @@ -24,6 +24,7 @@ import "./common" as Common Form { + info: qsTr("The paired samples t-test allows the user to estimate the effect size and test the null hypothesis that the population mean of the difference between observations equals 0 in dependent groups.") id: form property int framework: Common.Type.Framework.Classical @@ -33,15 +34,15 @@ Form VariablesForm { preferredHeight: jaspTheme.smallDefaultVariablesFormHeight - AvailableVariablesList { name: "allVariablesList" } - AssignedPairsVariablesList { name: "pairs"; title: qsTr("Variable Pairs"); allowedColumns: ["scale"]; minNumericLevels: 2 } + AvailableVariablesList { name: "allVariablesList"; info: qsTr("All variables are displayed here. Drag the relevant variables for the analysis to the variable pairs box.") } + AssignedPairsVariablesList { name: "pairs"; title: qsTr("Variable Pairs"); info: qsTr("The variables here have their difference computed. Multiple differences can be analysed at the same time by specifying different rows. In other words, each row represents a difference score."); allowedColumns: ["scale"]; minNumericLevels: 2 } } Group { title: qsTr("Tests") - CheckBox { name: "student"; label: qsTr("Student"); checked: true } - CheckBox { name: "wilcoxon"; label: qsTr("Wilcoxon signed-rank") } + CheckBox { name: "student"; label: qsTr("Student"); info: qsTr("Student's paired sample t-test.This option is selected by default"); checked: true } + CheckBox { name: "wilcoxon"; label: qsTr("Wilcoxon signed-rank"); info: ("Non-parametric version of paired samples t-test. Use when data is not normally distributed.") } } Group @@ -61,7 +62,7 @@ Form CheckBox { - name: "effectSize"; label: qsTr("Effect size") + name: "effectSize"; label: qsTr("Effect size"); info: qsTr ("For the Student t-test, the effect size is given by Cohen's d; for the Wilcoxon test, the effect size is given by the matched rank biserial correlation.") CheckBox { name: "effectSizeCi"; label: qsTr("Confidence interval") @@ -81,16 +82,16 @@ Form { name: "alternative" title: qsTr("Alternative Hypothesis") - RadioButton { value: "twoSided"; label: qsTr("Measure 1 ≠ Measure 2"); checked: true } - RadioButton { value: "greater"; label: qsTr("Measure 1 > Measure 2"); } - RadioButton { value: "less"; label: qsTr("Measure 1 < Measure 2"); } + RadioButton { value: "twoSided"; label: qsTr("Measure 1 ≠ Measure 2"); info: qsTr("Two-sided alternative hypothesis that the population mean of the difference is not equal to 0. This option is selected by default."); checked: true } + RadioButton { value: "greater"; label: qsTr("Measure 1 > Measure 2"); info: qsTr(" One-sided alternative hypothesis that the population mean of the difference is larger than 0.") } + RadioButton { value: "less"; label: qsTr("Measure 1 < Measure 2"); info: qsTr("One sided alternative hypothesis that the population mean of the difference is smaller than 0.") } } Group { title: qsTr("Assumption Checks") - CheckBox { name: "normalityTest"; label: qsTr("Normality") } - CheckBox { name: "qqPlot"; label: qsTr("Q-Q plot residuals") } + CheckBox { name: "normalityTest"; label: qsTr("Normality"); info: qsTr("Shapiro-Wilk test of normality.") } + CheckBox { name: "qqPlot"; label: qsTr("Q-Q plot residuals"); info: qsTr("Q-Q plot of the standardized residuals.") } } diff --git a/inst/qml/common/BarPlots.qml b/inst/qml/common/BarPlots.qml index d116fed4..51a69d82 100644 --- a/inst/qml/common/BarPlots.qml +++ b/inst/qml/common/BarPlots.qml @@ -39,10 +39,10 @@ CheckBox checked: true childrenOnSameRow: true - CIField { name: "barPlotCiLevel" } + CIField { name: "barPlotCiLevel"} } - RadioButton { value: "se"; label: qsTr("Standard error") } + RadioButton { value: "se"; label: qsTr("Standard error"); } } - CheckBox { name: "barPlotYAxisFixedToZero"; label: qsTr("Fix horizontal axis to 0"); checked: true } + CheckBox { name: "barPlotYAxisFixedToZero"; label: qsTr("Fix horizontal axis to 0"); checked: true } } From 04b7d5e455969d6baf465ebde33c10c9ee83e022 Mon Sep 17 00:00:00 2001 From: joaquin Date: Fri, 10 Jan 2025 15:13:53 +0000 Subject: [PATCH 13/21] Help files one sample t-test --- inst/qml/TTestOneSample.qml | 45 +++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/inst/qml/TTestOneSample.qml b/inst/qml/TTestOneSample.qml index 4b00718b..edc2d545 100644 --- a/inst/qml/TTestOneSample.qml +++ b/inst/qml/TTestOneSample.qml @@ -24,6 +24,7 @@ import "./common" as Common Form { + info: qsTr("The one sample t-test allows the user to estimate the effect size and test the null hypothesis that the population mean equals a specific constant, i.e., the test value.") id: form property int framework: Common.Type.Framework.Classical @@ -39,11 +40,11 @@ Form Group { title: qsTr("Tests") - CheckBox { name: "student"; label: qsTr("Student"); checked: true } - CheckBox { name: "wilcoxon"; label: qsTr("Wilcoxon signed-rank") } - CheckBox { name: "zTest"; label: qsTr("Z Test"); id: zTest } - DoubleField { name: "testValue"; label: qsTr("Test value:"); defaultValue: 0; negativeValues: true } - DoubleField { name: "zTestSd"; label: qsTr("Std. deviation:"); defaultValue: 1.0; enabled: zTest.checked } + CheckBox { name: "student"; label: qsTr("Student"); info: qsTr("The student's t-test. This options is selected by default."); checked: true } + CheckBox { name: "wilcoxon"; label: qsTr("Wilcoxon signed-rank"); info: qsTr("Wilcoxon signed-rank test. Use when data is not normally distributed.") } + CheckBox { name: "zTest"; label: qsTr("Z Test"); info: qsTr("The Z test."); id: zTest } + DoubleField { name: "testValue"; label: qsTr("Test value:"); info: qsTr("The test value for the Z test. By default this is set to 0."); defaultValue: 0; negativeValues: true } + DoubleField { name: "zTestSd"; label: qsTr("Std. deviation:"); info: qsTr("The standard deviation applied in the Z test. By default this is set to 1."); defaultValue: 1.0; enabled: zTest.checked } } Group @@ -52,10 +53,10 @@ Form Layout.rowSpan: 2 CheckBox { - name: "meanDifference"; label: qsTr("Location estimate") + name: "meanDifference"; label: qsTr("Location estimate"); info: qsTr("Average difference between the data points and the test value. For the Student's t-test and the Z test the location difference estimate is given by mean difference divided by the (hypothesized) standard deviation d; for the Wilcoxon signed-rank test, the location difference estimate is given by the Hodges-Lehmann estimate.") CheckBox { - name: "meanDifferenceCi"; label: qsTr("Confidence interval") + name: "meanDifferenceCi"; label: qsTr("Confidence interval"); info: qsTr(" Confidence interval for the location parameter. By default, the confidence interval is set to 95%. This can be changed into the desired percentage.") childrenOnSameRow: true CIField { name: "meanDifferenceCiLevel" } } @@ -63,32 +64,32 @@ Form CheckBox { - name: "effectSize"; label: qsTr("Effect size") + name: "effectSize"; label: qsTr("Effect size"); info: qsTr("For the Student t-test, the effect size is given by Cohen's d; for the Wilcoxon test, the effect size is given by the matched rank biserial correlation; for the Z test, the effect size is given by Cohen's d (based on the provided population standard deviation).") CheckBox { - name: "effectSizeCi"; label: qsTr("Confidence interval") + name: "effectSizeCi"; label: qsTr("Confidence interval"); info: qsTr("Confidence interval for the effect size.") childrenOnSameRow: true CIField { name: "effectSizeCiLevel" } } } - CheckBox { name: "descriptives"; label: qsTr("Descriptives") } - CheckBox { name: "vovkSellke"; label: qsTr("Vovk-Sellke maximum p-ratio") } + CheckBox { name: "descriptives"; label: qsTr("Descriptives"); info: qsTr("Sample size, sample mean, sample standard deviation, standard error of the mean for each measure.") } + CheckBox { name: "vovkSellke"; label: qsTr("Vovk-Sellke maximum p-ratio"); info: qsTr("Shows the maximum ratio of the lieklihood of the obtained p value under H1 vs the likelihood of the obtained p value under H0. For example, if the two-sided p-value equals .05, the Vovk-Sellke MPR equals 2.46, indicating that this p-value is at most 2.46 times more likely to occur under H1 than under H0") } } RadioButtonGroup { name: "alternative" title: qsTr("Alternative Hypothesis") - RadioButton { value: "twoSided"; label: qsTr("≠ Test value"); checked: true } - RadioButton { value: "greater"; label: qsTr("> Test value") } - RadioButton { value: "less"; label: qsTr("< Test value") } + RadioButton { value: "twoSided"; label: qsTr("≠ Test value"); info: qsTr("Two sided alternative hypothesis that the sample mean is not equal to the test value. Selected by default."); checked: true } + RadioButton { value: "greater"; label: qsTr("> Test value") ; info: qsTr("One sided alternative hypothesis that the sample mean is greater than the test value.") } + RadioButton { value: "less"; label: qsTr("< Test value") ; info: qsTr("One sided alternative hypothesis that the sample mean is less than the test value.") } } Group { title: qsTr("Assumption checks") - CheckBox { name: "normalityTest"; label: qsTr("Normality") } - CheckBox { name: "qqPlot"; label: qsTr("Q-Q plot residuals") } + CheckBox { name: "normalityTest"; label: qsTr("Normality"); info: qsTr("Shapiro-Wilk test of noemality.") } + CheckBox { name: "qqPlot"; label: qsTr("Q-Q plot residuals"); info: qsTr("Q-Q plot of the standardized residuals.") } } Group @@ -97,13 +98,13 @@ Form Layout.rowSpan: 2 CheckBox { - name: "descriptivesPlot"; label: qsTr("Descriptives plots") - CIField { name: "descriptivesPlotCiLevel"; label: qsTr("Confidence interval") } + name: "descriptivesPlot"; label: qsTr("Descriptives plots"); info: qsTr("Displays the sample mean and the confidence interval.") + CIField { name: "descriptivesPlotCiLevel"; label: qsTr("Confidence interval"); info:qsTr(" Coverage of the confidence intervals in percentages. By default, the confidence interval is set to 95%. This can be changed into the desired percentage.") } } CheckBox { - name: "raincloudPlot"; label: qsTr("Raincloud plots") - CheckBox { name: "raincloudPlotHorizontal"; label: qsTr("Horizontal display") } + name: "raincloudPlot"; label: qsTr("Raincloud plots"); info: qsTr("Displays the individual cases, box plot, and density.") + CheckBox { name: "raincloudPlotHorizontal"; label: qsTr("Horizontal display"); info: qsTr("Changes the orientation of the raincloud plot so that the x-axis represents the dependent variable.") } } Common.BarPlots { @@ -116,7 +117,7 @@ Form { name: "naAction" title: qsTr("Missing Values") - RadioButton { value: "perVariable"; label: qsTr("Exclude cases per variable"); checked: true } - RadioButton { value: "listwise"; label: qsTr("Exclude cases listwise") } + RadioButton { value: "perVariable"; label: qsTr("Exclude cases per variable"); info: qsTr("In case of multiple t-tests within a single analysis, each t-test will be conducted using all cases with valid data for the dependent variable for the particular t-test. Sample sizes may therefore vary across the tests. This option is selected by default."); checked: true } + RadioButton { value: "listwise"; label: qsTr("Exclude cases listwise"); info: qsTr("In case of multiple t-tests within a single analysis, each t-test will be conducted using only cases with valid data for all dependent variables. Sample size is therefore constant across the tests.") } } } From c2c54acf895d56bd876cc8587aec179ebf13ef0a Mon Sep 17 00:00:00 2001 From: joaquin Date: Sat, 18 Jan 2025 19:03:54 +0100 Subject: [PATCH 14/21] Fix issue --- inst/qml/TTestPairedSamples.qml | 1 - 1 file changed, 1 deletion(-) diff --git a/inst/qml/TTestPairedSamples.qml b/inst/qml/TTestPairedSamples.qml index afc93333..92777c2b 100644 --- a/inst/qml/TTestPairedSamples.qml +++ b/inst/qml/TTestPairedSamples.qml @@ -53,7 +53,6 @@ Form { name: "meanDifference"; label: qsTr("Location parameter"); info: qsTr ("For the Student's t-test the location parameter is given by mean difference d; for the Wilcoxon signed-rank test, the location parameter is given by the Hodges-Lehmann estimate.") CheckBox - CheckBox { name: "meanDifferenceCi"; label: qsTr("Confidence interval"); info: qsTr("Confidence interval for the location parameter. By default, the confidence interval is set to 95%. This can be changed into the desired percentage.") childrenOnSameRow: true From 00c9822fe0bb7648c2f046dec24f95bdf3bd9c91 Mon Sep 17 00:00:00 2001 From: joaquin Date: Mon, 3 Feb 2025 12:49:40 +0100 Subject: [PATCH 15/21] fixpairedsamples --- inst/qml/TTestPairedSamples.qml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/inst/qml/TTestPairedSamples.qml b/inst/qml/TTestPairedSamples.qml index 92777c2b..d83a36c6 100644 --- a/inst/qml/TTestPairedSamples.qml +++ b/inst/qml/TTestPairedSamples.qml @@ -34,7 +34,7 @@ Form VariablesForm { preferredHeight: jaspTheme.smallDefaultVariablesFormHeight - AvailableVariablesList { name: "allVariablesList"; } + AvailableVariablesList { name: "allVariablesList" ; } AssignedPairsVariablesList { name: "pairs"; title: qsTr("Variable Pairs"); info: qsTr("The variables here have their difference computed. Multiple differences can be analysed at the same time by specifying different rows. In other words, each row represents a difference score."); allowedColumns: ["scale"]; minNumericLevels: 2 } } @@ -54,7 +54,7 @@ Form name: "meanDifference"; label: qsTr("Location parameter"); info: qsTr ("For the Student's t-test the location parameter is given by mean difference d; for the Wilcoxon signed-rank test, the location parameter is given by the Hodges-Lehmann estimate.") CheckBox { - name: "meanDifferenceCi"; label: qsTr("Confidence interval"); info: qsTr("Confidence interval for the location parameter. By default, the confidence interval is set to 95%. This can be changed into the desired percentage.") + name: "meanDifferenceCi"; label: qsTr("Confidence interval"); info: qsTr ("Confidence interval for the location parameter. By default, the confidence interval is set to 95%. This can be changed into the desired percentage.") childrenOnSameRow: true CIField { name: "meanDifferenceCiLevel" } } @@ -74,16 +74,15 @@ Form name: "effectSizeCorrection"; label: qsTr("Correct for correlation"); info: qsTr("Correct the effect size for the correlation between the observed values, to prevent overestimating the effect (Dunlap et al., 1996).") } } - CheckBox { name: "descriptives"; label: qsTr("Descriptives"); info: qsTr("Sample size, sample mean, sample standard deviation, standard error of the mean for each measure.") } - CheckBox { name: "vovkSellke"; label: qsTr("Vovk-Sellke maximum p-ratio"); info: qsTr("Shows the maximum ratio of the lieklihood of the obtained p value under H1 vs the likelihood of the obtained p value under H0. For example, if the two-sided p-value equals .05, the Vovk-Sellke MPR equals 2.46, indicating that this p-value is at most 2.46 times more likely to occur under H1 than under H0") } + CheckBox { name: "descriptives"; label: qsTr("Descriptives") ; info: qsTr("Sample size, sample mean, sample standard deviation, standard error of the mean for each measure.") } + CheckBox { name: "vovkSellke"; label: qsTr("Vovk-Sellke maximum p-ratio") ; info: qsTr("Shows the maximum ratio of the lieklihood of the obtained p value under H1 vs the likelihood of the obtained p value under H0. For example, if the two-sided p-value equals .05, the Vovk-Sellke MPR equals 2.46, indicating that this p-value is at most 2.46 times more likely to occur under H1 than under H0.") } } - RadioButtonGroup { name: "alternative" title: qsTr("Alternative Hypothesis") RadioButton { value: "twoSided"; label: qsTr("Measure 1 ≠ Measure 2"); info: qsTr("Two-sided alternative hypothesis that the population mean of the difference is not equal to 0. This option is selected by default."); checked: true } - RadioButton { value: "greater"; label: qsTr("Measure 1 > Measure 2"); info: qsTr("One-sided alternative hypothesis that the population mean of the difference is larger than 0.") } + RadioButton { value: "greater"; label: qsTr("Measure 1 > Measure 2"); info: qsTr(" One-sided alternative hypothesis that the population mean of the difference is larger than 0.") } RadioButton { value: "less"; label: qsTr("Measure 1 < Measure 2"); info: qsTr("One sided alternative hypothesis that the population mean of the difference is smaller than 0.") } } @@ -101,13 +100,13 @@ Form CheckBox { name: "descriptivesPlot"; label: qsTr("Descriptives plots"); info: qsTr("Displays the sample means and the confidence intervals for each measure (see Morey [2008] for the computation of the standard error of the mean in paired designs).") - CIField { name: "descriptivesPlotCiLevel"; label: qsTr("Confidence interval"); info: qsTr("Coverage of the confidence intervals in percentages. By default, the confidence interval is set to 95%. This can be changeed into the desired percentage.") } + CIField { name: "descriptivesPlotCiLevel"; label: qsTr("Confidence interval") ; info: qsTr("Coverage of the confidence intervals in percentages. By default, the confidence interval is set to 95%. This can be changeed into the desired percentage.") } } CheckBox{ name: "raincloudPlot"; label: qsTr("Raincloud plots"); info:qsTr("Displays the individual cases (colored dots), box plots, and densities for each measure.") } CheckBox { - name: "differenceRaincloudPlot"; label: qsTr("Raincloud difference plots"); info: qsTr(" Displays a raincloud plot of the differences between the two measures.") - CheckBox { name: "differenceRaincloudPlotHorizontal"; label: qsTr("Horizontal display") ; info:qsTr("Changes the orientation of the raincloud difference plot so that the x-axis represents the dependent variable and the y-axis the difference between measures.") } + name: "differenceRaincloudPlot"; label: qsTr("Raincloud difference plots"); info: qsTr("Displays a raincloud plot of the differences between the two measures.") + CheckBox { name: "differenceRaincloudPlotHorizontal"; label: qsTr("Horizontal display"); info:qsTr("Changes the orientation of the raincloud difference plot so that the x-axis represents the dependent variable and the y-axis the difference between measures.") } } Common.BarPlots { @@ -119,8 +118,10 @@ Form { name: "naAction" title: qsTr("Missing Values") - RadioButton { value: "perDependent"; label: qsTr("Exclude cases per variable"); info: qsTr("In case of multiple t-tests within a single analysis, each test will be conducted using all cases with valid data for the difference score for the particular t-test. Sample sizes may therefore vary across the tests. This option is selected by default."); checked: true } - RadioButton { value: "listwise"; label: qsTr("Exclude cases listwise") ; info: qsTr("In case of multiple t-tests within a single analysis, each t-test will be conducted using only cases with valid data for all difference scores. Sample size is therefore constant across the tests.") } + RadioButton { value: "perDependent"; label: qsTr("Exclude cases per variable"); info: qsTr("In case of multiple T-tests within a single analysis, each test will be conducted using all cases with valid data for the difference score for the particular t-test. Sample sizes may therefore vary across the tests. This option is selected by default.") ; checked: true } + RadioButton { value: "listwise"; label: qsTr("Exclude cases listwise"); info: qsTr("In case of multiple t-tests within a single analysis, each t-test will be conducted using only cases with valid data for all difference scores. Sample size is therefore constant across the tests.") } } } + + From 0589cab8e26a91604a6cc855cf7344b560c483f3 Mon Sep 17 00:00:00 2001 From: joaquin Date: Thu, 6 Feb 2025 16:13:15 +0100 Subject: [PATCH 16/21] Fixed typo and other issues --- inst/qml/TTestOneSample.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inst/qml/TTestOneSample.qml b/inst/qml/TTestOneSample.qml index edc2d545..443e6be2 100644 --- a/inst/qml/TTestOneSample.qml +++ b/inst/qml/TTestOneSample.qml @@ -42,9 +42,9 @@ Form title: qsTr("Tests") CheckBox { name: "student"; label: qsTr("Student"); info: qsTr("The student's t-test. This options is selected by default."); checked: true } CheckBox { name: "wilcoxon"; label: qsTr("Wilcoxon signed-rank"); info: qsTr("Wilcoxon signed-rank test. Use when data is not normally distributed.") } - CheckBox { name: "zTest"; label: qsTr("Z Test"); info: qsTr("The Z test."); id: zTest } - DoubleField { name: "testValue"; label: qsTr("Test value:"); info: qsTr("The test value for the Z test. By default this is set to 0."); defaultValue: 0; negativeValues: true } - DoubleField { name: "zTestSd"; label: qsTr("Std. deviation:"); info: qsTr("The standard deviation applied in the Z test. By default this is set to 1."); defaultValue: 1.0; enabled: zTest.checked } + CheckBox { name: "zTest"; label: qsTr("Z Test"); info: qsTr("The Z test. Use for testing whether two population means are different. The test value is set to 0 by default and the standard deviation is set to 1"); id: zTest } + DoubleField { name: "testValue"; label: qsTr("Test value:"); defaultValue: 0; negativeValues: true } + DoubleField { name: "zTestSd"; label: qsTr("Std. deviation:"); defaultValue: 1.0; enabled: zTest.checked } } Group @@ -88,7 +88,7 @@ Form Group { title: qsTr("Assumption checks") - CheckBox { name: "normalityTest"; label: qsTr("Normality"); info: qsTr("Shapiro-Wilk test of noemality.") } + CheckBox { name: "normalityTest"; label: qsTr("Normality"); info: qsTr("Shapiro-Wilk test of normality.") } CheckBox { name: "qqPlot"; label: qsTr("Q-Q plot residuals"); info: qsTr("Q-Q plot of the standardized residuals.") } } From 38dbbf9a3ed1221c6fe23a72753482d9d4c28125 Mon Sep 17 00:00:00 2001 From: joaquin Date: Sat, 8 Feb 2025 00:32:51 +0100 Subject: [PATCH 17/21] Added assumptions to one sample t test --- inst/qml/TTestOneSample.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/inst/qml/TTestOneSample.qml b/inst/qml/TTestOneSample.qml index 443e6be2..fee93a3c 100644 --- a/inst/qml/TTestOneSample.qml +++ b/inst/qml/TTestOneSample.qml @@ -25,6 +25,7 @@ import "./common" as Common Form { info: qsTr("The one sample t-test allows the user to estimate the effect size and test the null hypothesis that the population mean equals a specific constant, i.e., the test value.") + infoBottom: "## " + qsTr("Assumptions") + "\n" + "- The dependent variable is continuous\n" + "- The data are a random sample from the population.\n" + "- The dependent variable is normally distributed in the population." id: form property int framework: Common.Type.Framework.Classical From ce3c7063f2aade7e4e8359e369cce36a5270f032 Mon Sep 17 00:00:00 2001 From: joaquin Date: Mon, 10 Feb 2025 13:29:04 +0100 Subject: [PATCH 18/21] Fixed assumptions and formatting issues --- inst/qml/TTestIndependentSamples.qml | 8 +++++--- inst/qml/TTestOneSample.qml | 9 +++++---- inst/qml/TTestPairedSamples.qml | 7 ++++--- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/inst/qml/TTestIndependentSamples.qml b/inst/qml/TTestIndependentSamples.qml index ad3f2ccb..015998b8 100644 --- a/inst/qml/TTestIndependentSamples.qml +++ b/inst/qml/TTestIndependentSamples.qml @@ -24,7 +24,8 @@ import "./common" as Common Form { - info: qsTr("The independent samples t-test allows the user to estimate the effect size and test the null hypothesis that the population means of two independent groups are equal.") + info: qsTr("The independent samples t-test allows the user to estimate the effect size and test the null hypothesis that the population means of two independent groups are equal.\n") + + "## " + qsTr("Assumptions") + "\n" + "- The dependent variable is continuous.\n" + "- The observations in both groups are a random sample from the population.\n" + "- The dependent variable is normally distributed in each group of the independent variable.\n" + "- The population variances in the two groups are homogeneous." id: form property int framework: Common.Type.Framework.Classical @@ -114,8 +115,9 @@ Form Layout.rowSpan: 2 CheckBox { - name: "descriptivesPlot"; label: qsTr("Descriptives plots") ; info: qsTr("Displays the sample means and the confidence intervals for each group.") - CIField { name: "descriptivesPlotCiLevel"; label: qsTr("Confidence interval") ; info: qsTr(" Coverage of the confidence intervals in percentages. By default, the confidence interval is set to 95%. This can be changeed into the desired percentage.") } + name: "descriptivesPlot"; label: qsTr("Descriptives plots") ; info: qsTr("Displays the sample means and the confidence intervals for each group.\n") + "\t" + "- Confidence interval: Coverage of the confidence intervals in percentages. By default, the confidence interval is set to 95%. This can be changed into the desired percentage." + + CIField { name: "descriptivesPlotCiLevel"; label: qsTr("Confidence interval") ; } } CheckBox { diff --git a/inst/qml/TTestOneSample.qml b/inst/qml/TTestOneSample.qml index fee93a3c..ab0a2083 100644 --- a/inst/qml/TTestOneSample.qml +++ b/inst/qml/TTestOneSample.qml @@ -24,8 +24,8 @@ import "./common" as Common Form { - info: qsTr("The one sample t-test allows the user to estimate the effect size and test the null hypothesis that the population mean equals a specific constant, i.e., the test value.") - infoBottom: "## " + qsTr("Assumptions") + "\n" + "- The dependent variable is continuous\n" + "- The data are a random sample from the population.\n" + "- The dependent variable is normally distributed in the population." + info: qsTr("The one sample t-test allows the user to estimate the effect size and test the null hypothesis that the population mean equals a specific constant, i.e., the test value.\n") + + "## " + qsTr("Assumptions") + "\n" + "- The dependent variable is continuous\n" + "- The data are a random sample from the population.\n" + "- The dependent variable is normally distributed in the population." id: form property int framework: Common.Type.Framework.Classical @@ -65,10 +65,11 @@ Form CheckBox { - name: "effectSize"; label: qsTr("Effect size"); info: qsTr("For the Student t-test, the effect size is given by Cohen's d; for the Wilcoxon test, the effect size is given by the matched rank biserial correlation; for the Z test, the effect size is given by Cohen's d (based on the provided population standard deviation).") + name: "effectSize"; label: qsTr("Effect size"); info: qsTr("For the Student t-test, the effect size is given by Cohen's d; for the Wilcoxon test, the effect size is given by the matched rank biserial correlation; for the Z test, the effect size is given by Cohen's d (based on the provided population standard deviation).\n") + "\t" + "- Confidence interval: Confidence interval for the effect size." + CheckBox { - name: "effectSizeCi"; label: qsTr("Confidence interval"); info: qsTr("Confidence interval for the effect size.") + name: "effectSizeCi"; label: qsTr("Confidence interval"); childrenOnSameRow: true CIField { name: "effectSizeCiLevel" } } diff --git a/inst/qml/TTestPairedSamples.qml b/inst/qml/TTestPairedSamples.qml index d83a36c6..83e32b90 100644 --- a/inst/qml/TTestPairedSamples.qml +++ b/inst/qml/TTestPairedSamples.qml @@ -24,7 +24,8 @@ import "./common" as Common Form { - info: qsTr("The paired samples t-test allows the user to estimate the effect size and test the null hypothesis that the population mean of the difference between observations equals 0 in dependent groups.") + info: qsTr("The paired samples t-test allows the user to estimate the effect size and test the null hypothesis that the population mean of the difference between observations equals 0 in dependent groups.\n") + + "## " + qsTr("Assumptions") + "\n" + "- The difference score is continuous.\n" + "- The difference scores are a random sample from the population.\n" + "- The difference scores are normally distributed in the population." id: form property int framework: Common.Type.Framework.Classical @@ -99,8 +100,8 @@ Form title: qsTr("Plots") CheckBox { - name: "descriptivesPlot"; label: qsTr("Descriptives plots"); info: qsTr("Displays the sample means and the confidence intervals for each measure (see Morey [2008] for the computation of the standard error of the mean in paired designs).") - CIField { name: "descriptivesPlotCiLevel"; label: qsTr("Confidence interval") ; info: qsTr("Coverage of the confidence intervals in percentages. By default, the confidence interval is set to 95%. This can be changeed into the desired percentage.") } + name: "descriptivesPlot"; label: qsTr("Descriptives plots"); info: qsTr("Displays the sample means and the confidence intervals for each measure (see Morey [2008] for the computation of the standard error of the mean in paired designs.)\n") + "\t" + "- Confidence interval: Coverage of the confidence intervals in percentages. By default, the confidence interval is set to 95%. This can be changeed into the desired percentage." + CIField { name: "descriptivesPlotCiLevel"; label: qsTr("Confidence interval") ; } } CheckBox{ name: "raincloudPlot"; label: qsTr("Raincloud plots"); info:qsTr("Displays the individual cases (colored dots), box plots, and densities for each measure.") } CheckBox From 45819e75f5b322a572131cad29a26c1f6a584b64 Mon Sep 17 00:00:00 2001 From: joaquin Date: Tue, 11 Feb 2025 13:34:14 +0100 Subject: [PATCH 19/21] Bayesian ind t test info files --- inst/qml/TTestBayesianIndependentSamples.qml | 37 ++++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/inst/qml/TTestBayesianIndependentSamples.qml b/inst/qml/TTestBayesianIndependentSamples.qml index b21cf70e..86523379 100644 --- a/inst/qml/TTestBayesianIndependentSamples.qml +++ b/inst/qml/TTestBayesianIndependentSamples.qml @@ -23,6 +23,9 @@ import JASP.Controls import "./common" as Common Form { + info: qsTr("The Bayesian independent samples t-test allows the user to estimate the effect size and test the null hypothesis that the population means of two independent groups are equal.\n") + + "## " + "Assumptions" + "\n" + "- Continuous dependent variable.\n" + "- The observations in both groups are a random sample from the population.\n" + "- The dependent variable is normally distributed in both populations.\n" + "- The population variances in the two groups are homogeneous." + id: form property int framework: Common.Type.Framework.Bayesian @@ -35,8 +38,8 @@ Form { { preferredHeight: jaspTheme.smallDefaultVariablesFormHeight AvailableVariablesList { name: "allVariablesList" } - AssignedVariablesList { name: "dependent"; title: qsTr("Dependent Variables"); allowedColumns: ["scale"]; minNumericLevels: 2 } - AssignedVariablesList { name: "group"; title: qsTr("Grouping Variable"); allowedColumns: ["nominal"]; minLevels: 2; maxLevels: 2; singleVariable: true } + AssignedVariablesList { name: "dependent"; title: qsTr("Dependent Variables"); info: qsTr("In this box the dependent variable is selected."); allowedColumns: ["scale"]; minNumericLevels: 2 } + AssignedVariablesList { name: "group"; title: qsTr("Grouping Variable"); info: qsTr("In this box the variable defining the groups is selected."); allowedColumns: ["nominal"]; minLevels: 2; maxLevels: 2; singleVariable: true } } RadioButtonGroup @@ -44,9 +47,9 @@ Form { id: hypothesis name: "alternative" title: qsTr("Alternative Hypothesis") - RadioButton { value: "twoSided"; 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: "twoSided"; label: qsTr("Group 1 ≠ Group 2"); info: qsTr("Two-sided alternative hypothesis that the population means are equal. Selected by default"); checked: true } + RadioButton { value: "greater"; label: qsTr("Group 1 > Group 2"); info: qsTr("One-sided alternative hypothesis that the population mean of group one is larger than the population mean of group two.") } + RadioButton { value: "less"; label: qsTr("Group 1 < Group 2"); info: qsTr("One-sided alternative hypothesis that the population mean of group one is smaller than the population mean of group two.") } } Group @@ -56,7 +59,8 @@ Form { CheckBox { - name: "priorAndPosteriorPlot"; label: qsTr("Prior and posterior") + name: "priorAndPosteriorPlot"; label: qsTr("Prior and posterior"); info: qsTr("Displays the prior and posterior distribution of the effect size after the data is seen.\n") + "\t" + "- Additional info: Adds the Bayes factor computed with the user-defined prior; adds a probability wheel depicting how likely the data is under the null vs. alternative hypothesis; adds the median and the 95% credible interval of the posterior distribution of the effect size." + CheckBox { name: "priorAndPosteriorPlotAdditionalInfo"; label: qsTr("Additional info"); checked: true } CIField { name: "priorAndPosteriorPlotCiLevel"; label: qsTr("Credible interval") } } @@ -64,20 +68,22 @@ Form { CheckBox { enabled: student.checked && priors.defaultPriorsChecked - name: "bfRobustnessPlot"; label: qsTr("Bayes factor robustness check") + name: "bfRobustnessPlot"; label: qsTr("Bayes factor robustness check"); info: qsTr("Displays the Bayes factor accross different values of cauchy prior width. The scale of the Cauchy prior is varied between 0 and 1.5, creating progressively more uninformative priors.\n") + + "\t" + "- Additional info: Adds the Bayes factor computed with the user-defined prior; adds a probability wheel depicting how likely the data is under the null vs. alternative hypothesis; adds the median and the 95% credible interval of the posterior distribution of the effect size."; CheckBox { name: "bfRobustnessPlotAdditionalInfo"; label: qsTr("Additional info"); checked: true } } CheckBox { enabled: student.checked && priors.defaultPriorsChecked - name: "bfSequentialPlot"; label: qsTr("Sequential analysis") + name: "bfSequentialPlot"; label: qsTr("Sequential analysis"); info: qsTr("Displays the development of the Bayes factor as the data come in using the user-defined prior.\n") + + "\t" + "- Robustness check: Adds the results of the sequential analysis using the wide (scale=1) and ultrawide prior (scale=sqrt(2))."; CheckBox { name: "bfSequentialPlotRobustness"; label: qsTr("Robustness check") } } CheckBox { - name: "descriptivesPlot"; label: qsTr("Descriptives") + name: "descriptivesPlot"; label: qsTr("Descriptives"); info: qsTr("\n") + "\t" + "- Credible interval: Display central credible intervals. A credible interval shows the probability that the true effect size lies within certain values. The default credible interval is set at 95%." CIField { name: "descriptivesPlotCiLevel"; label: qsTr("Credible interval") } } @@ -88,7 +94,8 @@ Form { CheckBox { - name: "raincloudPlot"; label: qsTr("Raincloud plots") + name: "raincloudPlot"; label: qsTr("Raincloud plots"); info: qsTr("Displays the individual cases (colored dots), box plots, and densities for each group.\n") + + "\t" + "- Horizontal display: Changes the orientation of the raincloud plot so that the x-axis represents the dependent variable and the y-axis the grouping variable." CheckBox { name: "raincloudPlotHorizontal"; label: qsTr("Horizontal display") } } } @@ -103,10 +110,10 @@ Form { RadioButton { id: student - value: "student"; label: qsTr("Student"); checked: true} + value: "student"; label: qsTr("Student"); info: qsTr("Student's t-test. This option is selected by default."); checked: true} RadioButton { - value: "wilcoxon"; label: qsTr("Mann-Whitney"); id: testWilcoxon + value: "wilcoxon"; label: qsTr("Mann-Whitney"); info: qsTr("Mann-Whitney test. Use when data is not normally distributed.\n") + "\t" + "- Number of MCMC samples to use"; id: testWilcoxon IntegerField { name: "wilcoxonSamples"; label: qsTr("No. samples"); defaultValue: 1000; min: 100; max: 10000; fieldWidth: 60 } } } @@ -115,13 +122,13 @@ Form { { name: "naAction" title: qsTr("Missing Values") - RadioButton { value: "perDependent"; label: qsTr("Exclude cases per dependent variable"); checked: true } - RadioButton { value: "listwise"; label: qsTr("Exclude cases listwise") } + RadioButton { value: "perDependent"; label: qsTr("Exclude cases per dependent variable"); info: qsTr("In case of multiple t-tests within a single analysis, each test will be conducted using all cases with valid data for the dependent variable for the particular t-test. Sample sizes may therefore vary across the multiple t-tests."); checked: true } + RadioButton { value: "listwise"; label: qsTr("Exclude cases listwise"); info: qsTr(" In case of multiple t-tests within a single analysis, each t-test will be conducted using only cases with valid data for all dependent variables. Sample size is therefore constant across the multiple t-tests.") } } Group { - title: qsTr("Additional Statistics") + title: qsTr("Additional Statistics"); info: qsTr("\n") + "- Descriptives: Sample size, sample mean, sample standard deviation, and standard error of the mean for each group." CheckBox { name: "descriptives"; label: qsTr("Descriptives") } } From 0ea1172bf1e83991a710a3b68240b351f93ba448 Mon Sep 17 00:00:00 2001 From: joaquin Date: Fri, 14 Feb 2025 11:49:43 +0100 Subject: [PATCH 20/21] Bayesianpairedsamplesinfo --- inst/qml/TTestBayesianPairedSamples.qml | 40 +++++++++++++++---------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/inst/qml/TTestBayesianPairedSamples.qml b/inst/qml/TTestBayesianPairedSamples.qml index 84a8e931..6e3c6518 100644 --- a/inst/qml/TTestBayesianPairedSamples.qml +++ b/inst/qml/TTestBayesianPairedSamples.qml @@ -23,6 +23,8 @@ import JASP.Controls import "./common" as Common Form { + info: qsTr("The paired samples t-test allows you to estimate the effect size and test the null hypothesis that the population mean of the difference between paired(dependent) observations equals 0.\n") + + "## " + "Assumptions" + "\n" + "- Continuous difference score.\n" + "- The difference scores are a random sample from the population.\n" + "- The difference scores are normally distributed in the population." id: form property int framework: Common.Type.Framework.Bayesian @@ -33,7 +35,7 @@ Form { { preferredHeight: jaspTheme.smallDefaultVariablesFormHeight AvailableVariablesList { name: "allVariablesList" } - AssignedPairsVariablesList { name: "pairs"; title: qsTr("Variable Pairs"); allowedColumns: ["scale"]; minNumericLevels: 2 } + AssignedPairsVariablesList { name: "pairs"; title: qsTr("Variable Pairs"); info: qsTr("In this box the variables are selected for which the difference is computed. Multiple differences can be analysed at the same time by specifying different rows with two variables for which the difference is computed. In other words, each row represents other difference scores."); allowedColumns: ["scale"]; minNumericLevels: 2 } } RadioButtonGroup @@ -41,9 +43,9 @@ Form { id: hypothesis name: "alternative" title: qsTr("Alternative Hypothesis") - RadioButton { value: "twoSided"; label: qsTr("Measure 1 ≠ Measure 2"); checked: true } - RadioButton { value: "greater"; label: qsTr("Measure 1 > Measure 2"); } - RadioButton { value: "less"; label: qsTr("Measure 1 < Measure 2"); } + RadioButton { value: "twoSided"; label: qsTr("Measure 1 ≠ Measure 2"); info: qsTr("Two-sided alternative hypothesis that the population mean of the difference is not equal to 0. Selected by default.") ; checked: true } + RadioButton { value: "greater"; label: qsTr("Measure 1 > Measure 2"); info: qsTr("One-sided alternative hypothesis that the population mean of the difference is larger than 0.") } + RadioButton { value: "less"; label: qsTr("Measure 1 < Measure 2"); info: qsTr("One sided alternative hypothesis that the population mean of the difference is smaller than 0.") } } Group @@ -53,7 +55,7 @@ Form { CheckBox { - name: "priorAndPosteriorPlot"; label: qsTr("Prior and posterior") + name: "priorAndPosteriorPlot"; label: qsTr("Prior and posterior"); info: qsTr("Displays the prior and posterior distribution of the effect size after the data is seen.\n") + "\t" + "- Additional info: Adds the Bayes factor computed with the user-defined prior; adds a probability wheel depicting how likely the data is under the null vs. alternative hypothesis; adds the median and the 95% credible interval of the posterior distribution of the effect size." CheckBox { name: "priorAndPosteriorPlotAdditionalInfo"; label: qsTr("Additional info"); checked: true } CIField { name: "priorAndPosteriorPlotCiLevel"; label: qsTr("Credible interval") } } @@ -61,20 +63,24 @@ Form { CheckBox { enabled: student.checked && priors.defaultPriorsChecked - name: "bfRobustnessPlot"; label: qsTr("Bayes factor robustness check") + name: "bfRobustnessPlot"; label: qsTr("Bayes factor robustness check"); info: qsTr("Displays the Bayes factor accross different values of cauchy prior width. The scale of the Cauchy prior is varied between 0 and 1.5, creating progressively more uninformative priors.\n") + + "\t" + "- Additional info: Adds the Bayes factor computed with the user-defined prior; adds a probability wheel depicting how likely the data is under the null vs. alternative hypothesis; adds the median and the 95% credible interval of the posterior distribution of the effect size."; CheckBox { name: "bfRobustnessPlotAdditionalInfo"; label: qsTr("Additional info"); checked: true } } CheckBox { enabled: student.checked && priors.defaultPriorsChecked - name: "bfSequentialPlot"; label: qsTr("Sequential analysis") + name: "bfSequentialPlot"; label: qsTr("Sequential analysis"); info: qsTr("Displays the development of the Bayes factor as the data come in using the user-defined prior.\n") + + "\t" + "- Robustness check: Adds the results of the sequential analysis using the wide (scale=1) and ultrawide prior (scale=sqrt(2))." CheckBox { name: "bfSequentialPlotRobustness"; label: qsTr("Robustness check") } } CheckBox { - name: "descriptivesPlot"; label: qsTr("Descriptives") + name: "descriptivesPlot"; label: qsTr("Descriptives"); info: qsTr("\n") + "\t" + "- Credible interval: Display central credible intervals. A credible interval shows the probability that the true effect size lies within certain values. The default credible interval is set at 95%.\n" + + "- bar plots: Displays the sample means as bars and the credible intervals or standard errors as error bars for each measure.\n" + "\t" + "- Credible interval: Displays the central credible intervals. By default, the credible interval is set to 95%. This can be changed into the desired percentage.\n" + + "\t" + "- Standard error: By selecting this option, the error bars will represent standard errors of the mean of each condition.\n" + "\t" + "- Fix horizontal axis to 0: Forces the graph to show the default x-axis at y = 0." CIField { name: "descriptivesPlotCiLevel"; label: qsTr("Credible interval") } } @@ -85,13 +91,14 @@ Form { CheckBox { - name: "raincloudPlot"; label: qsTr("Raincloud plots") + name: "raincloudPlot"; label: qsTr("Raincloud plots"); info: qsTr("Displays the individual cases (colored dots), box plots, and densities for each group.") } CheckBox { - name: "differenceRaincloudPlot"; label: qsTr("Raincloud difference plots") - CheckBox { name: "differenceRaincloudPlotHorizontal"; label: qsTr("Horizontal display") } + name: "differenceRaincloudPlot"; label: qsTr("Raincloud difference plots"); info: qsTr("Displays a raincloud plot of the differences between the two measures.\n") + + "\t" + "- Horizontal display: Changes the orientation of the raincloud plot so that the x-axis represents the dependent variable and the y-axis the grouping variable." + CheckBox { name: "differenceRaincloudPlotHorizontal"; label: qsTr("Horizontal display"); } } } @@ -105,17 +112,18 @@ Form { RadioButton { id: student - value: "student"; label: qsTr("Student"); checked: true } + value: "student"; label: qsTr("Student"); info: qsTr("Student's t-test. This option is selected by default."); checked: true } RadioButton { - value: "wilcoxon"; label: qsTr("Wilcoxon signed-rank"); id: testWilcoxon + value: "wilcoxon"; label: qsTr("Wilcoxon signed-rank"); info: qsTr("Non-parametric version of paired samples t-test. Use when data is not normally distributed.\n") + + "\t" + "- Number of MCMC samples to use"; id: testWilcoxon IntegerField { name: "wilcoxonSamples"; label: qsTr("No. samples"); defaultValue: 1000; min: 100; max: 10000; fieldWidth: 60 } } } Group { - title: qsTr("Additional Statistics") + title: qsTr("Additional Statistics"); info: qsTr("\n") + "- Descriptives: Sample size, sample mean, sample standard deviation, and standard error of the mean for each group." CheckBox { name: "descriptives"; label: qsTr("Descriptives") } } @@ -123,8 +131,8 @@ Form { { name: "naAction" title: qsTr("Missing Values") - RadioButton { value: "perDependent"; label: qsTr("Exclude cases per dependent variable"); checked: true } - RadioButton { value: "listwise"; label: qsTr("Exclude cases listwise") } + RadioButton { value: "perDependent"; label: qsTr("Exclude cases per dependent variable"); info: qsTr("In case of multiple t-tests within a single analysis, each test will be conducted using all cases with valid data for the dependent variable for the particular t-test. Sample sizes may therefore vary across the multiple t-tests."); checked: true } + RadioButton { value: "listwise"; label: qsTr("Exclude cases listwise"); info: qsTr("In case of multiple t-tests within a single analysis, each t-test will be conducted using only cases with valid data for all dependent variables. Sample size is therefore constant across the multiple t-tests.") } } SubjectivePriors { id: priors } From 9e040e72b9b2d96f75c9d736b30256abc0c1ccbf Mon Sep 17 00:00:00 2001 From: joaquin Date: Mon, 17 Feb 2025 13:27:53 +0100 Subject: [PATCH 21/21] bayesianonesampleinfo --- inst/qml/TTestBayesianOneSample.qml | 39 +++++++++++++++---------- inst/qml/TTestBayesianPairedSamples.qml | 2 +- 2 files changed, 25 insertions(+), 16 deletions(-) diff --git a/inst/qml/TTestBayesianOneSample.qml b/inst/qml/TTestBayesianOneSample.qml index 55bf6de1..9c1f5387 100644 --- a/inst/qml/TTestBayesianOneSample.qml +++ b/inst/qml/TTestBayesianOneSample.qml @@ -24,6 +24,8 @@ import "./common" as Common Form { + info: qsTr("The paired samples t-test allows you to estimate the effect size and test the null hypothesis that the population mean equals a specific constant,i.e., the test value.\n") + + "## " + "Assumptions" + "\n" + "- Continuous dependent variable.\n" + "- The data are a random sample from the population.\n" + "- The dependent variable is normally distributed in the population." id: form property int framework: Common.Type.Framework.Bayesian @@ -38,7 +40,7 @@ Form { preferredHeight: jaspTheme.smallDefaultVariablesFormHeight AvailableVariablesList { name: "allVariablesList" } - AssignedVariablesList { name: "dependent"; title: qsTr("Variables"); allowedColumns: ["scale"]; minNumericLevels: 2 } + AssignedVariablesList { name: "dependent"; title: qsTr("Variables"); info: qsTr("In this box the dependent variable is selected.\n") + "- Test value: Test value specified in the null hypothesis." ; allowedColumns: ["scale"]; minNumericLevels: 2 } } DoubleField { name: "testValue"; label: qsTr("Test value:"); defaultValue: 0; negativeValues: true } @@ -50,7 +52,7 @@ Form CheckBox { - name: "priorAndPosteriorPlot"; label: qsTr("Prior and posterior") + name: "priorAndPosteriorPlot"; label: qsTr("Prior and posterior"); info: qsTr("Displays the prior and posterior distribution of the effect size after the data is seen.\n") + "\t" + "- Additional info: Adds the Bayes factor computed with the user-defined prior; adds a probability wheel depicting how likely the data is under the null vs. alternative hypothesis; adds the median and the 95% credible interval of the posterior distribution of the effect size." CheckBox { name: "priorAndPosteriorPlotAdditionalInfo"; label: qsTr("Additional info"); checked: true } CIField { name: "priorAndPosteriorPlotCiLevel"; label: qsTr("Credible interval") } } @@ -58,20 +60,24 @@ Form CheckBox { enabled: student.checked && priors.defaultPriorsChecked - name: "bfRobustnessPlot"; label: qsTr("Bayes factor robustness check") + name: "bfRobustnessPlot"; label: qsTr("Bayes factor robustness check"); info: qsTr("Displays the Bayes factor accross different values of cauchy prior width. The scale of the Cauchy prior is varied between 0 and 1.5, creating progressively more uninformative priors.\n") + + "\t" + "- Additional info: Adds the Bayes factor computed with the user-defined prior; adds a probability wheel depicting how likely the data is under the null vs. alternative hypothesis; adds the median and the 95% credible interval of the posterior distribution of the effect size." CheckBox { name: "bfRobustnessPlotAdditionalInfo"; label: qsTr("Additional info"); checked: true } } CheckBox { enabled: student.checked && priors.defaultPriorsChecked - name: "bfSequentialPlot"; label: qsTr("Sequential analysis") + name: "bfSequentialPlot"; label: qsTr("Sequential analysis"); info: qsTr("Displays the development of the Bayes factor as the data come in using the user-defined prior.\n") + + "\t" + "- Robustness check: Adds the results of the sequential analysis using the wide (scale=1) and ultrawide prior (scale=sqrt(2))." CheckBox { name: "bfSequentialPlotRobustness"; label: qsTr("Robustness check") } } CheckBox { - name: "descriptivesPlot"; label: qsTr("Descriptives") + name: "descriptivesPlot"; label: qsTr("Descriptives"); info: qsTr("\n") + "\t" + "- Credible interval: Display central credible intervals. A credible interval shows the probability that the true effect size lies within certain values. The default credible interval is set at 95%.\n" + + "- Bar plots: Displays the sample means as bars and the credible intervals or standard errors as error bars for each measure.\n" + "\t" + "- Credible interval: Displays the central credible intervals. By default, the credible interval is set to 95%. This can be changed into the desired percentage.\n" + + "\t" + "- Standard error: By selecting this option, the error bars will represent standard errors of the mean of each condition.\n" + "\t" + "- Fix horizontal axis to 0: Forces the graph to show the default x-axis at y = 0." CIField { name: "descriptivesPlotCiLevel"; label: qsTr("Credible interval") } } @@ -82,7 +88,8 @@ Form CheckBox { - name: "raincloudPlot"; label: qsTr("Raincloud plots") + name: "raincloudPlot"; label: qsTr("Raincloud plots"); info: qsTr("Displays the individual cases (colored dots), box plots, and densities for each group.\n") + + "\t" + "- Horizontal display: Changes the orientation of the raincloud plot so that the x-axis represents the dependent variable." CheckBox { name: "raincloudPlotHorizontal"; label: qsTr("Horizontal display") } } } @@ -93,9 +100,9 @@ Form id: hypothesis name: "alternative" title: qsTr("Alternative Hypothesis") - RadioButton { value: "twoSided"; label: qsTr("≠ Test value"); checked: true } - RadioButton { value: "greater"; label: qsTr("> Test value"); } - RadioButton { value: "less"; label: qsTr("< Test value"); } + RadioButton { value: "twoSided"; label: qsTr("≠ Test value"); info: qsTr("Two-sided alternative hypothesis that the population mean is not equal to the test value. Selected by default."); checked: true } + RadioButton { value: "greater"; label: qsTr("> Test value"); info: qsTr("One-sided alternative hypothesis that the population mean is larger than the test value.") } + RadioButton { value: "less"; label: qsTr("< Test value"); info: qsTr("One sided alternative hypothesis that the population mean is smaller than the test value.") } } BayesFactorType { correlated: hypothesis.value } @@ -108,17 +115,18 @@ Form RadioButton { id: student - value: "student"; label: qsTr("Student"); checked: true } + value: "student"; label: qsTr("Student"); info: qsTr("Student's t-test. This option is selected by default.") ; checked: true } RadioButton { - value: "wilcoxon"; label: qsTr("Wilcoxon signed-rank"); id: testWilcoxon + value: "wilcoxon"; label: qsTr("Wilcoxon signed-rank"); info: qsTr("Non-parametric version of one-sample t-test. Use when data is not normally distributed.\n") + + "\t" + "- No.samples: Number of MCMC samples to use"; id: testWilcoxon IntegerField { name: "wilcoxonSamples"; label: qsTr("No. samples"); defaultValue: 1000; min: 100; max: 10000; fieldWidth: 60 } } } Group { - title: qsTr("Additional Statistics") + title: qsTr("Additional Statistics"); info: qsTr("\n") + "- Descriptives: Sample size, sample mean, sample standard deviation, and standard error of the mean for each group." CheckBox { name: "descriptives"; label: qsTr("Descriptives") } } @@ -126,11 +134,12 @@ Form { name: "naAction" title: qsTr("Missing Values") - RadioButton { value: "perDependent"; label: qsTr("Exclude cases per dependent variable"); checked: true } - RadioButton { value: "listwise"; label: qsTr("Exclude cases listwise") } + RadioButton { value: "perDependent"; label: qsTr("Exclude cases per dependent variable"); info: qsTr("In case of multiple t-tests within a single analysis, each test will be conducted using all cases with valid data for the dependent variable for the particular t-test. Sample sizes may therefore vary across the multiple t-tests.; checked: true") } + RadioButton { value: "listwise"; label: qsTr("Exclude cases listwise"); info: qsTr(" In case of multiple t-tests within a single analysis, each t-test will be conducted using only cases with valid data for all dependent variables. Sample size is therefore constant across the multiple t-tests.\n") + + "## " + "prior" + "\n" + "\t" + "Standardized effect size\n" + "\t" + "\t" + "Default\n" + "\t" + "\t" + "\t" + "- Cauchy: Scale of the Cauchy prior distribution on effect size under the alternative hypothesis; the default is 0.707.\n" + + "\t" + "\t" + "Informed\n" + "\t" + "\t" + "\t" + "- Cauchy: Scale and location.\n" + "\t" + "\t" + "\t" + "- Normal: Mean and standard deviation." + "\t" + "\t" + "\t" + "- Student's t: Scale, location and degrees of freedom (df)." } } SubjectivePriors { id: priors } - } diff --git a/inst/qml/TTestBayesianPairedSamples.qml b/inst/qml/TTestBayesianPairedSamples.qml index 6e3c6518..700ff047 100644 --- a/inst/qml/TTestBayesianPairedSamples.qml +++ b/inst/qml/TTestBayesianPairedSamples.qml @@ -116,7 +116,7 @@ Form { RadioButton { value: "wilcoxon"; label: qsTr("Wilcoxon signed-rank"); info: qsTr("Non-parametric version of paired samples t-test. Use when data is not normally distributed.\n") + - "\t" + "- Number of MCMC samples to use"; id: testWilcoxon + "\t" + "- No.samples: Number of MCMC samples to use"; id: testWilcoxon IntegerField { name: "wilcoxonSamples"; label: qsTr("No. samples"); defaultValue: 1000; min: 100; max: 10000; fieldWidth: 60 } } }