Skip to content

Commit b92489b

Browse files
committed
recovered
1 parent c864aae commit b92489b

Some content is hidden

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

75 files changed

+1135
-449
lines changed

DESCRIPTION

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Type: Package
22
Package: ClinicoPath
33
Title: Analysis for Clinicopathological Research
4-
Version: 0.0.2.0005
5-
Date: 2020-05-20
4+
Version: 0.0.2.0006
5+
Date: 2020-05-22
66
Authors@R:
77
person(given = "Serdar",
88
family = "Balci",
@@ -24,17 +24,25 @@ BugReports:
2424
Depends:
2525
R (>= 3.6.0)
2626
Imports:
27+
jmvcore,
28+
R6
29+
Remotes:
30+
ddsjoberg/gtsummary,
31+
ndphillips/FFTrees,
32+
easystats/report,
33+
spgarbet/tangram@0.3.2,
34+
cran/rmngb,
35+
mixOmicsTeam/mixOmics
36+
Suggests:
2737
dplyr,
2838
finalfit,
2939
ggalluvial,
3040
ggplot2,
3141
ggstatsplot,
3242
glue,
3343
janitor,
34-
jmvcore,
3544
knitr,
3645
purrr,
37-
R6,
3846
scales,
3947
survival,
4048
survminer,
@@ -52,15 +60,7 @@ Imports:
5260
plotROC,
5361
arsenal,
5462
easyalluvial,
55-
parcats
56-
Remotes:
57-
ddsjoberg/gtsummary,
58-
ndphillips/FFTrees,
59-
easystats/report,
60-
spgarbet/tangram@0.3.2,
61-
cran/rmngb,
62-
mixOmicsTeam/mixOmics
63-
Suggests:
63+
parcats,
6464
corrr,
6565
correlation,
6666
RVAideMemoire,

NAMESPACE

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export(decision)
99
export(decisioncalculator)
1010
export(gtsummary)
1111
export(icccoeff)
12+
export(jjbetweenstats)
13+
export(jjviolin)
1214
export(multisurvival)
1315
export(oddsratio)
1416
export(pairchi2)
@@ -20,21 +22,7 @@ export(survival)
2022
export(tableone)
2123
export(tree)
2224
export(vartree)
23-
import(finalfit)
24-
import(ggalluvial)
25-
import(ggplot2)
26-
import(ggstatsplot)
2725
import(jmvcore)
28-
import(plotROC)
29-
import(survival)
30-
import(survminer)
3126
importFrom(R6,R6Class)
32-
importFrom(caret,confusionMatrix)
33-
importFrom(ggalluvial,StatStratum)
34-
importFrom(irr,agree)
35-
importFrom(irr,kappa2)
36-
importFrom(irr,kappam.fleiss)
3727
importFrom(jmvcore,toNumeric)
38-
importFrom(purrr,map)
39-
importFrom(tableone,CreateTableOne)
4028
importFrom(utils,data)

R/agreement.b.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
#' Interrater Reliability Analysis
1+
#' @title Interrater Reliability Analysis
22
#' @return Table
33
#' @importFrom R6 R6Class
44
#' @import jmvcore
5-
#' @importFrom irr kappa2
6-
#' @importFrom irr kappam.fleiss
7-
#' @importFrom irr agree
85
#'
96

107

R/alluvial.b.R

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,29 @@ alluvialClass <- if (requireNamespace('jmvcore')) R6::R6Class(
153153

154154
mydata <- jmvcore::select(self$data, c(varsName))
155155

156+
fill <- jmvcore::composeTerm(self$options$fill)
156157

157158

159+
160+
# verbose ----
161+
162+
verbose <- FALSE
163+
164+
if (isTRUE(verb)) verbose <- TRUE
165+
166+
# fill_by ----
167+
168+
jmvcore::composeTerm(self$options$fill)
169+
170+
self$options$fill
171+
172+
173+
#bin
174+
175+
bin <- self$options$bin
176+
177+
if (bin = "default") bin <- 'c("LL", "ML", "M", "MH", "HH")'
178+
158179
# Exclude NA ----
159180

160181
excl <- self$options$excl
@@ -168,7 +189,9 @@ alluvialClass <- if (requireNamespace('jmvcore')) R6::R6Class(
168189
plot <-
169190
easyalluvial::alluvial_wide( data = mydata,
170191
max_variables = 6,
171-
fill_by = 'first_variable'
192+
fill_by = fill,
193+
verbose = verbose,
194+
bin_labels = bin
172195
)
173196

174197

@@ -183,15 +206,15 @@ alluvialClass <- if (requireNamespace('jmvcore')) R6::R6Class(
183206

184207

185208

186-
# Interactive ----
187-
188-
inter <- self$options$inter
189-
190-
if (inter) {
191-
plot <-
192-
parcats::parcats(plot,
193-
data_input = mydata)
194-
}
209+
# # Interactive ----
210+
#
211+
# inter <- self$options$inter
212+
#
213+
# if (inter) {
214+
# plot <-
215+
# parcats::parcats(plot,
216+
# data_input = mydata)
217+
# }
195218

196219

197220

R/alluvial.h.R

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ alluvialOptions <- if (requireNamespace('jmvcore')) R6::R6Class(
88
initialize = function(
99
vars = NULL,
1010
excl = TRUE,
11-
marg = FALSE,
12-
inter = FALSE, ...) {
11+
marg = FALSE, ...) {
1312

1413
super$initialize(
1514
package='ClinicoPath',
@@ -28,26 +27,19 @@ alluvialOptions <- if (requireNamespace('jmvcore')) R6::R6Class(
2827
"marg",
2928
marg,
3029
default=FALSE)
31-
private$..inter <- jmvcore::OptionBool$new(
32-
"inter",
33-
inter,
34-
default=FALSE)
3530

3631
self$.addOption(private$..vars)
3732
self$.addOption(private$..excl)
3833
self$.addOption(private$..marg)
39-
self$.addOption(private$..inter)
4034
}),
4135
active = list(
4236
vars = function() private$..vars$value,
4337
excl = function() private$..excl$value,
44-
marg = function() private$..marg$value,
45-
inter = function() private$..inter$value),
38+
marg = function() private$..marg$value),
4639
private = list(
4740
..vars = NA,
4841
..excl = NA,
49-
..marg = NA,
50-
..inter = NA)
42+
..marg = NA)
5143
)
5244

5345
alluvialResults <- if (requireNamespace('jmvcore')) R6::R6Class(
@@ -63,8 +55,7 @@ alluvialResults <- if (requireNamespace('jmvcore')) R6::R6Class(
6355
name="",
6456
title="Alluvial Diagrams",
6557
refs=list(
66-
"easyalluvial",
67-
"parcats"))
58+
"easyalluvial"))
6859
self$add(jmvcore::Html$new(
6960
options=options,
7061
name="todo",
@@ -116,7 +107,6 @@ alluvialBase <- if (requireNamespace('jmvcore')) R6::R6Class(
116107
#' the values used for the Alluvial Diagram.
117108
#' @param excl .
118109
#' @param marg .
119-
#' @param inter .
120110
#' @return A results object containing:
121111
#' \tabular{llllll}{
122112
#' \code{results$todo} \tab \tab \tab \tab \tab a html \cr
@@ -128,8 +118,7 @@ alluvial <- function(
128118
data,
129119
vars,
130120
excl = TRUE,
131-
marg = FALSE,
132-
inter = FALSE) {
121+
marg = FALSE) {
133122

134123
if ( ! requireNamespace('jmvcore'))
135124
stop('alluvial requires jmvcore to be installed (restart may be required)')
@@ -144,8 +133,7 @@ alluvial <- function(
144133
options <- alluvialOptions$new(
145134
vars = vars,
146135
excl = excl,
147-
marg = marg,
148-
inter = inter)
136+
marg = marg)
149137

150138
analysis <- alluvialClass$new(
151139
options = options,

R/competingsurvival.b.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Competing Survival Analysis
1+
#' @title Competing Survival Analysis
22
#'
33
#'
44
#'

R/correlation.b.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Correlation Analysis
1+
#' @title Correlation Analysis
22
#'
33
#'
44
#'

R/crosstable.b.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Cross Table
1+
#' @title Cross Table
22
#'
33
#'
44
#' @importFrom R6 R6Class

R/decision.b.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Medical Decision Making
1+
#' @title Medical Decision Making
22
#'
33
#'
44
#'

0 commit comments

Comments
 (0)