Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sbalci committed Dec 20, 2023
1 parent 1b3c59b commit 9d0d984
Show file tree
Hide file tree
Showing 16 changed files with 77 additions and 53 deletions.
8 changes: 7 additions & 1 deletion R/00jmv.R
Original file line number Diff line number Diff line change
Expand Up @@ -524,4 +524,10 @@
`title`="Applied Survival Analysis Using R",
`publisher`="Springer Cham",
`doi`="10.1007/978-3-319-31245-3",
`url`="https://link.springer.com/book/10.1007/978-3-319-31245-3"))
`url`="https://link.springer.com/book/10.1007/978-3-319-31245-3"),
`survivalrwnahhas`=list(
`type`="book chapter",
`author`="Ramzi W. Nahhas",
`year`=2023,
`title`="Chapter 7 Survival Analysis. Introduction to Regression Methods for Public Health Using R.",
`url`="https://bookdown.org/rwnahhas/RMPH/survival.html"))
1 change: 1 addition & 0 deletions R/multisurvival.h.R
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ multisurvivalResults <- if (requireNamespace("jmvcore", quietly=TRUE)) R6::R6Cla
refs=list(
"multivariable",
"survivaltutorial",
"survivalrwnahhas",
"ClinicoPathJamoviModule"))
self$add(jmvcore::Html$new(
options=options,
Expand Down
14 changes: 6 additions & 8 deletions R/singlearm.b.R
Original file line number Diff line number Diff line change
Expand Up @@ -507,16 +507,14 @@ singlearmClass <- if (requireNamespace('jmvcore', quietly=TRUE)) R6::R6Class(

## Add Calculated Time to Data ----

self$results$mydataview$setContent(
list(
head(results$cleanData)
)
)
# self$results$mydataview$setContent(
# list(
# head(results$cleanData)
# )
# )


if (
# self$options$tint &&
self$options$calculatedtime && self$results$calculatedtime$isNotFilled()) {
if ( self$options$tint && self$options$calculatedtime && self$results$calculatedtime$isNotFilled()) {
self$results$calculatedtime$setRowNums(results$cleanData$row_names)
self$results$calculatedtime$setValues(results$cleanData$CalculatedTime)
}
Expand Down
9 changes: 2 additions & 7 deletions R/singlearm.h.R
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ singlearmResults <- if (requireNamespace("jmvcore", quietly=TRUE)) R6::R6Class(
inherit = jmvcore::Group,
active = list(
todo = function() private$.items[["todo"]],
mydataview = function() private$.items[["mydataview"]],
medianSummary = function() private$.items[["medianSummary"]],
medianTable = function() private$.items[["medianTable"]],
survTableSummary = function() private$.items[["survTableSummary"]],
Expand All @@ -309,7 +308,8 @@ singlearmResults <- if (requireNamespace("jmvcore", quietly=TRUE)) R6::R6Class(
"survival",
"survminer",
"ClinicoPathJamoviModule",
"survivaltutorial"))
"survivaltutorial",
"survivalrwnahhas"))
self$add(jmvcore::Html$new(
options=options,
name="todo",
Expand All @@ -322,10 +322,6 @@ singlearmResults <- if (requireNamespace("jmvcore", quietly=TRUE)) R6::R6Class(
"dxdate",
"tint",
"multievent")))
self$add(jmvcore::Preformatted$new(
options=options,
name="mydataview",
title="mydataview"))
self$add(jmvcore::Preformatted$new(
options=options,
name="medianSummary",
Expand Down Expand Up @@ -615,7 +611,6 @@ singlearmBase <- if (requireNamespace("jmvcore", quietly=TRUE)) R6::R6Class(
#' @return A results object containing:
#' \tabular{llllll}{
#' \code{results$todo} \tab \tab \tab \tab \tab a html \cr
#' \code{results$mydataview} \tab \tab \tab \tab \tab a preformatted \cr
#' \code{results$medianSummary} \tab \tab \tab \tab \tab a preformatted \cr
#' \code{results$medianTable} \tab \tab \tab \tab \tab a table \cr
#' \code{results$survTableSummary} \tab \tab \tab \tab \tab a preformatted \cr
Expand Down
1 change: 1 addition & 0 deletions R/survival.h.R
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ survivalResults <- if (requireNamespace("jmvcore", quietly=TRUE)) R6::R6Class(
"survival",
"survminer",
"survivaltutorial",
"survivalrwnahhas",
"survivalrviews",
"appliedsurvivalanalysisR",
"ClinicoPathJamoviModule"))
Expand Down
7 changes: 1 addition & 6 deletions R/survivalcont.h.R
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ survivalcontResults <- if (requireNamespace("jmvcore", quietly=TRUE)) R6::R6Clas
inherit = jmvcore::Group,
active = list(
todo = function() private$.items[["todo"]],
mydataview = function() private$.items[["mydataview"]],
coxSummary = function() private$.items[["coxSummary"]],
coxTable = function() private$.items[["coxTable"]],
tCoxtext2 = function() private$.items[["tCoxtext2"]],
Expand Down Expand Up @@ -340,15 +339,12 @@ survivalcontResults <- if (requireNamespace("jmvcore", quietly=TRUE)) R6::R6Clas
"survminer",
"dichotomizing",
"survivaltutorial",
"survivalrwnahhas",
"ClinicoPathJamoviModule"))
self$add(jmvcore::Html$new(
options=options,
name="todo",
title="To Do"))
self$add(jmvcore::Preformatted$new(
options=options,
name="mydataview",
title="mydataview"))
self$add(jmvcore::Preformatted$new(
options=options,
name="coxSummary",
Expand Down Expand Up @@ -866,7 +862,6 @@ survivalcontBase <- if (requireNamespace("jmvcore", quietly=TRUE)) R6::R6Class(
#' @return A results object containing:
#' \tabular{llllll}{
#' \code{results$todo} \tab \tab \tab \tab \tab a html \cr
#' \code{results$mydataview} \tab \tab \tab \tab \tab a preformatted \cr
#' \code{results$coxSummary} \tab \tab \tab \tab \tab a preformatted \cr
#' \code{results$coxTable} \tab \tab \tab \tab \tab a table \cr
#' \code{results$tCoxtext2} \tab \tab \tab \tab \tab a html \cr
Expand Down
7 changes: 0 additions & 7 deletions jamovi/0000.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -385,13 +385,6 @@ analyses:
menuTitle: ROC
description: Function for ROC Analysis.
menuSubtitle: Decision
- title: Graphs and Plots
name: statsplot2
ns: ClinicoPath
menuGroup: JJStatsPlot
menuSubgroup: Variable Type Based Graphs and Plots
menuTitle: Graphs and Plots
description: Function for Generating Plots and Graphs Based on Variable Types.
- title: Time Interval
name: timeinterval
ns: ClinicoPath
Expand Down
8 changes: 8 additions & 0 deletions jamovi/00refs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -634,5 +634,13 @@ refs:
doi: 10.1007/978-3-319-31245-3
url: https://link.springer.com/book/10.1007/978-3-319-31245-3

survivalrwnahhas:
type: 'book chapter'
author: Ramzi W. Nahhas
year: 2023
title: "Chapter 7 Survival Analysis. Introduction to Regression Methods for Public Health Using R."
url: https://bookdown.org/rwnahhas/RMPH/survival.html



...
1 change: 1 addition & 0 deletions jamovi/multisurvival.r.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ items:
refs:
- multivariable
- survivaltutorial
- survivalrwnahhas
- ClinicoPathJamoviModule

# - name: model
Expand Down
16 changes: 11 additions & 5 deletions jamovi/multisurvival.u.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ children:
children:
- type: Output
name: calculatedtime
enable: (tint)
- type: CollapseBox
label: Analysis with Multiple Outcomes
collapsed: true
Expand Down Expand Up @@ -150,11 +151,16 @@ children:
- type: ComboBox
name: analysistype
enable: (outcome && multievent)
- type: LayoutBox
margin: large
- type: Label
label: Calculated Outcome to Data
fitToGrid: true
children:
- type: Output
name: outcomeredifened
- type: LayoutBox
margin: large
children:
- type: Output
name: outcomeredifened
enable: (outcome && multievent)


- type: CollapseBox
Expand All @@ -177,7 +183,7 @@ children:
- type: ComboBox
name: sty
enable: (hr)

- type: Label
label: Proportional Hazards Assumption
fitToGrid: true
Expand Down
7 changes: 4 additions & 3 deletions jamovi/singlearm.r.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ items:
- multievent


- name: mydataview
title: mydataview
type: Preformatted
# - name: mydataview
# title: mydataview
# type: Preformatted


- name: medianSummary
Expand Down Expand Up @@ -269,6 +269,7 @@ refs:
- survminer
- ClinicoPathJamoviModule
- survivaltutorial
- survivalrwnahhas


...
15 changes: 10 additions & 5 deletions jamovi/singlearm.u.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,17 @@ children:
- type: ComboBox
name: analysistype
enable: (outcome && multievent)
- type: LayoutBox
margin: large
- type: Label
label: Calculated Outcome to Data
fitToGrid: true
children:
- type: Output
name: outcomeredifened
enable: (multievent)
- type: LayoutBox
margin: large
children:
- type: Output
name: outcomeredifened
enable: (outcome && multievent)

- type: CollapseBox
label: Plots
collapsed: true
Expand Down
1 change: 1 addition & 0 deletions jamovi/survival.r.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ refs:
- survival
- survminer
- survivaltutorial
- survivalrwnahhas
- survivalrviews
- appliedsurvivalanalysisR
- ClinicoPathJamoviModule
Expand Down
14 changes: 10 additions & 4 deletions jamovi/survival.u.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ children:
children:
- type: Output
name: calculatedtime
enable: (tint)
- type: CollapseBox
label: Analysis with Multiple Outcomes
collapsed: true
Expand Down Expand Up @@ -144,11 +145,16 @@ children:
- type: ComboBox
name: analysistype
enable: (outcome && multievent)
- type: LayoutBox
margin: large
- type: Label
label: Calculated Outcome to Data
fitToGrid: true
children:
- type: Output
name: outcomeredifened
- type: LayoutBox
margin: large
children:
- type: Output
name: outcomeredifened
enable: (multievent)


- type: CollapseBox
Expand Down
7 changes: 4 additions & 3 deletions jamovi/survivalcont.r.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ items:
# title: mydataview2
# type: Preformatted

- name: mydataview
title: mydataview
type: Preformatted
# - name: mydataview
# title: mydataview
# type: Preformatted

- name: coxSummary
title: '`Cox Regression Summary and Table - ${contexpl}`'
Expand Down Expand Up @@ -478,6 +478,7 @@ refs:
- survminer
- dichotomizing
- survivaltutorial
- survivalrwnahhas
- ClinicoPathJamoviModule

...
14 changes: 10 additions & 4 deletions jamovi/survivalcont.u.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ children:
children:
- type: Output
name: calculatedtime
enable: (tint)
- type: CollapseBox
label: Analysis with Multiple Outcomes
collapsed: true
Expand Down Expand Up @@ -159,11 +160,16 @@ children:
- type: ComboBox
name: analysistype
enable: (outcome && multievent)
- type: LayoutBox
margin: large
- type: Label
label: Calculated Outcome to Data
fitToGrid: true
children:
- type: Output
name: outcomeredifened
- type: LayoutBox
margin: large
children:
- type: Output
name: outcomeredifened
enable: (outcome && multievent)



Expand Down

0 comments on commit 9d0d984

Please sign in to comment.