Skip to content

Commit 38a8edb

Browse files
authored
na-omit for qq in descriptives (#477)
* na-omit * add rds fallback, update test plots and renvlock * update vctrs * bump lazyeval * more strict na check qqplot
1 parent 0629e77 commit 38a8edb

50 files changed

Lines changed: 2396 additions & 1645 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: jaspDescriptives
22
Type: Package
33
Title: Descriptives Module for JASP
4-
Version: 0.96.0
5-
Date: 2022-09-12
4+
Version: 0.96.1
5+
Date: 2026-04-07
66
Author: JASP Team
77
Website: jasp-stats.org
88
Maintainer: JASP Team <[email protected]>

R/descriptives.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1846,11 +1846,13 @@ DescriptivesInternal <- function(jaspResults, dataset, options) {
18461846
errorMessage <- .descriptivesCheckPlotErrors(dataset, qqvar, obsAmount = "< 1")
18471847
if (!is.null(errorMessage)) {
18481848
descriptivesQQPlot$setError(gettextf("Plotting not possible: %s", errorMessage))
1849+
} else if (sum(!is.na(dataset[[qqvar]])) < 2) {
1850+
descriptivesQQPlot$setError(gettextf("Plotting not possible: Variable '%s' has fewer than 2 valid (non-missing) observations.", qqvar))
18491851
} else {
18501852

18511853
ciLevel <- if (options[["qqPlotCi"]]) options[["qqPlotCiLevel"]] else NULL
18521854

1853-
descriptivesQQPlot$plotObject <- jaspGraphs::plotQQnorm(scale(dataset[[qqvar]]),
1855+
descriptivesQQPlot$plotObject <- jaspGraphs::plotQQnorm(scale(na.omit(dataset[[qqvar]])),
18541856
yName = "Standardized sample quantiles",
18551857
ablineColor = "darkred",
18561858
ablineOrigin = TRUE,

renv.lock

Lines changed: 825 additions & 33 deletions
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)