|
9 | 9 | # report_effectsize ---------------------
|
10 | 10 |
|
11 | 11 | .report_effectsize_wilcox <- function(x, table, dot_args) {
|
12 |
| - args <- c(list(x, rank_biserial = TRUE), dot_args) |
13 |
| - table <- do.call(parameters::parameters, args) |
| 12 | + my_args <- c(list(x, es_type = "rank_biserial"), dot_args) |
| 13 | + table <- do.call(parameters::model_parameters, my_args) |
14 | 14 | ci <- attributes(table)$ci
|
15 | 15 | estimate <- "r_rank_biserial"
|
16 | 16 |
|
17 | 17 | # same as Pearson's r
|
18 |
| - args <- c(list(table$r_rank_biserial), dot_args) |
19 |
| - interpretation <- do.call(effectsize::interpret_r, args) |
| 18 | + my_args <- c(list(table$r_rank_biserial), dot_args) |
| 19 | + interpretation <- do.call(effectsize::interpret_r, my_args) |
20 | 20 | rules <- .text_effectsize(attr(attr(interpretation, "rules"), "rule_name"))
|
21 | 21 |
|
22 | 22 | main <- paste0("r (rank biserial) = ", insight::format_value(table$r_rank_biserial))
|
|
42 | 42 | if ("Parameter1" %in% names(table)) {
|
43 | 43 | vars_full <- paste0(table$Parameter1[[1]], " and ", table$Parameter2[[1]])
|
44 | 44 |
|
45 |
| - text <- paste0( |
| 45 | + text_string <- paste0( |
46 | 46 | trimws(x$method),
|
47 | 47 | " testing the difference in ranks between ",
|
48 | 48 | vars_full
|
|
51 | 51 | # one-sample
|
52 | 52 | vars_full <- paste0(table$Parameter[[1]])
|
53 | 53 |
|
54 |
| - text <- paste0( |
| 54 | + text_string <- paste0( |
55 | 55 | trimws(x$method),
|
56 | 56 | " testing the difference in rank for ",
|
57 | 57 | vars_full,
|
58 | 58 | " and true location of 0"
|
59 | 59 | )
|
60 | 60 | }
|
61 | 61 |
|
62 |
| - text |
| 62 | + text_string |
63 | 63 | }
|
0 commit comments