diff --git a/DESCRIPTION b/DESCRIPTION index 9636eb7f..d9e4a8c6 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,7 +2,7 @@ Package: sjstats Type: Package Encoding: UTF-8 Title: Collection of Convenient Functions for Common Statistical Computations -Version: 0.19.0 +Version: 0.19.0.1 Authors@R: person("Daniel", "Lüdecke", role = c("aut", "cre"), email = "d.luedecke@uke.de", comment = c(ORCID = "0000-0002-8895-3206")) Maintainer: Daniel Lüdecke Description: Collection of convenient functions for common statistical computations, diff --git a/R/chi_squared_test.R b/R/chi_squared_test.R index 395848e1..b2713d6d 100644 --- a/R/chi_squared_test.R +++ b/R/chi_squared_test.R @@ -259,7 +259,7 @@ print.sj_htest_chi <- function(x, ...) { # headline insight::print_color(sprintf( - "\n# Chi-squared test for %s%s\n", + "# Chi-squared test for %s%s\n", attributes(x)$caption, weight_string ), "blue") diff --git a/tests/testthat/_snaps/chi_squared_test.md b/tests/testthat/_snaps/chi_squared_test.md index 5c4478f2..58c793b1 100644 --- a/tests/testthat/_snaps/chi_squared_test.md +++ b/tests/testthat/_snaps/chi_squared_test.md @@ -3,7 +3,6 @@ Code print(out1) Output - # Chi-squared test for contingency tables Data: c161sex by e16sex (n = 900) @@ -16,7 +15,6 @@ Code print(out) Output - # Chi-squared test for contingency tables (weighted) Data: c161sex by e16sex (n = 904) @@ -29,7 +27,6 @@ Code print(out1) Output - # Chi-squared test for given probabilities Data: c161sex against probabilities 30% and 70% (n = 901) @@ -42,7 +39,6 @@ Code print(out) Output - # Chi-squared test for given probabilities (weighted) Data: c161sex against probabilities 30% and 70% (n = 906) @@ -55,7 +51,6 @@ Code print(out1) Output - # Chi-squared test for contingency tables (using McNemar's test for paired data)