Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
boutinb committed May 15, 2024
1 parent c17fa42 commit 52e9b8e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
25 changes: 13 additions & 12 deletions inst/qml/common/LDAssessFit.qml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Section
{
property string distributionType : "continuous" // "counts" or "categorical"
property bool includeShapiroWilk : false
property bool isDistributionContinuous : distributionType === "continuous"

title: enabled ? qsTr("Assess Fit") : qsTr("Assess Fit") + " - " + qsTr("[requires a loaded data set]")

Expand All @@ -32,21 +33,21 @@ Section
title: qsTr("Plots")
CheckBox
{
name: distributionType === "continuous" ? "estPDF" : "estPMF";
label: distributionType === "continuous" ? qsTr("Histogram vs. theoretical pdf") : qsTr("Histogram vs. theoretical pmf")
name: isDistributionContinuous ? "estPDF" : "estPMF";
label: isDistributionContinuous ? qsTr("Histogram vs. theoretical pdf") : qsTr("Histogram vs. theoretical pmf")
info: qsTr("Displays a histogram of the selected variable overlayed with the probability density function of the fitted distribution")
}
CheckBox
{
name: "qqplot"
label: qsTr("Q-Q plot")
CheckBox
name: "qqplot"
label: qsTr("Q-Q plot")
info: qsTr("Displays the quantile-quantile plot. The *x*-axis shows the theoretical quantiles of the data points under the fitted distribution, the *y*-axis shows the empirical quantiles of the selected variable.")
CheckBox
{
name: "qqPlotCi"
label: qsTr("Confidence interval")
childrenOnSameRow: true
visible: distributionType === "continuous"
info: visible ? qsTr("Displays the quantile-quantile plot. The *x*-axis shows the theoretical quantiles of the data points under the fitted distribution, the *y*-axis shows the empirical quantiles of the selected variable.") : ""
visible: isDistributionContinuous
CIField{ name: "qqPlotCiLevel" }
}
}
Expand All @@ -60,21 +61,21 @@ Section
{
name: "ppplot";
label: qsTr("P-P plot")
CheckBox
info: qsTr("Displays the probability-probability plot. The *x*-axis shows the theoretical value of the cumulative density function of the data points under the fitted distribution, the *y*-axis shows the empirical percentiles of the selected variable.")
CheckBox
{
name: "ppPlotCi"
label: qsTr("Confidence interval")
childrenOnSameRow: true
visible: distributionType === "continuous"
info: visible ? qsTr("Displays the probability-probability plot. The *x*-axis shows the theoretical value of the cumulative density function of the data points under the fitted distribution, the *y*-axis shows the empirical percentiles of the selected variable.") : ""
visible: isDistributionContinuous
CIField{ name: "ppPlotCiLevel" }
}
}
}

Loader
{
sourceComponent: distributionType == "continuous" ? continuous : ( distributionType == "counts" ? counts : categorical )
sourceComponent: isDistributionContinuous ? continuous : ( distributionType == "counts" ? counts : categorical )
Component
{
id: continuous
Expand All @@ -94,7 +95,7 @@ Section
Group
{
title: qsTr("Statistics")
CheckBox{ name: "chiSquare"; label: qsTr("Chi-square")}
CheckBox{ name: "chiSquare"; label: qsTr("Chi-square"); info: qsTr("Displays the chi-square goodness of fit test")}
}
}

Expand Down
9 changes: 8 additions & 1 deletion inst/qml/common/LDGenerateDisplayData.qml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,15 @@ Section
CheckBox
{
name: "histogram"; label: histogramIsBarPlot ? qsTr("Bar plot") : qsTr("Histogram with"); childrenOnSameRow: true
infoLabel: histogramIsBarPlot ? qsTr("Bar plot") : qsTr("Histogram with ... bins")
info: histogramIsBarPlot ? qsTr("Display a bar plot of the selected variable.") : qsTr("Display a histogram of the selected variable with the number of specified bins.")
IntegerField { visible: !histogramIsBarPlot; name: "histogramBins"; afterLabel: qsTr("bins"); defaultValue: 30 }
}
CheckBox{ visible: showCumulativeDistribution; name: "ecdf"; label: qsTr("Empirical cumulative distribution") }
CheckBox
{
visible: showCumulativeDistribution; name: "ecdf"
label: qsTr("Empirical cumulative distribution")
info: qsTr("Displays an empirical cumulative distribution plot of the selected variable.")
}
}
}

0 comments on commit 52e9b8e

Please sign in to comment.