You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/crosstable.b.R
+83-22Lines changed: 83 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,20 @@ crosstableClass <- if (requireNamespace('jmvcore')) R6::R6Class(
13
13
.run=function() {
14
14
15
15
16
+
17
+
# Select Style ----
18
+
19
+
sty<-self$options$sty
20
+
21
+
22
+
23
+
16
24
if (is.null(self$options$vars) || is.null(self$options$group)) {
17
25
18
26
# ToDo Message ----
19
27
20
28
todo<-glue::glue("
21
29
<br>
22
-
21:02
23
30
<br>Welcome to ClinicoPath.<br>
24
31
This tool will help you form a Cross Table.<br>
25
32
The functions select hypothesis tests automatically. You may see different results with different tables. Please verify your data distribution and appropriateness of the test accordingly. You may find Statkat module useful.<br>
@@ -35,6 +42,23 @@ crosstableClass <- if (requireNamespace('jmvcore')) R6::R6Class(
35
42
html<-self$results$todo
36
43
html$setContent(todo)
37
44
45
+
46
+
if (sty=="finalfit") {
47
+
48
+
49
+
todo<-glue::glue("
50
+
<br>
51
+
<b>finalfit</b> uses
52
+
<em>aov (analysis of variance) or t.test for Welch two sample t-test. Note continuous non-parametric test is always Kruskal Wallis (kruskal.test) which in two-group setting is equivalent to Mann-Whitney U /Wilcoxon rank sum test</em>. See full documentation <a href= 'https://finalfit.org/reference/summary_factorlist.html'>here</a>.
53
+
"
54
+
)
55
+
56
+
57
+
html<-self$results$todo
58
+
html$setContent(todo)
59
+
60
+
}
61
+
38
62
# Error Message ----
39
63
40
64
if (nrow(self$data) ==0) stop("Data contains no (complete) rows")
@@ -63,10 +87,6 @@ crosstableClass <- if (requireNamespace('jmvcore')) R6::R6Class(
0 commit comments