mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
renaming to cut function to cut_var to distinct from the base-version - UI improvements - nice code formatting.
This commit is contained in:
parent
8469a5ca64
commit
361296531e
30 changed files with 1248 additions and 1686 deletions
|
|
@ -1,3 +1,45 @@
|
|||
### On rewriting this module
|
||||
###
|
||||
### This module (and the plotting module) should be rewritten to allow for
|
||||
### dynamically defining variable-selection for model evaluation.
|
||||
### The principle of having a library of supported functions is fine, but should
|
||||
### be expanded.
|
||||
###
|
||||
###
|
||||
|
||||
# list(
|
||||
# lm = list(
|
||||
# descr = "Linear regression model",
|
||||
# design = "cross-sectional",
|
||||
# parameters=list(
|
||||
# fun = "stats::lm",
|
||||
# args.list = NULL
|
||||
# ),
|
||||
# variables = list(
|
||||
# outcome.str = list(
|
||||
# fun = "columnSelectInput",
|
||||
# multiple = FALSE,
|
||||
# label = "Select the dependent/outcome variable."
|
||||
# )
|
||||
# ),
|
||||
# out.type = "continuous",
|
||||
# formula.str = "{outcome.str}~{paste(vars,collapse='+')}",
|
||||
# table.fun = "gtsummary::tbl_regression",
|
||||
# table.args.list = list(exponentiate = FALSE)
|
||||
# ))
|
||||
#
|
||||
# Regarding the regression model, it really should be the design selection,
|
||||
# that holds the input selection information, as this is what is deciding
|
||||
# the number and type of primary inputs.
|
||||
#
|
||||
# Cross-sectional: outcome
|
||||
# MMRM: outcome, random effect (id, time)
|
||||
# Survival: time, status, strata(?)
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
|
||||
regression_ui <- function(id, ...) {
|
||||
ns <- shiny::NS(id)
|
||||
|
||||
|
|
@ -62,7 +104,7 @@ regression_ui <- function(id, ...) {
|
|||
type = "secondary",
|
||||
auto_reset = TRUE
|
||||
),
|
||||
shiny::helpText("Press 'Analyse' again after changing parameters."),
|
||||
shiny::helpText("Press 'Analyse' to create the regression model and after changing parameters."),
|
||||
shiny::tags$br()
|
||||
),
|
||||
do.call(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue