include regression p-value by default

This commit is contained in:
Andreas Gammelgaard Damsbo 2025-01-24 11:26:14 +01:00
parent e0ce910393
commit b47a8bb1c0
No known key found for this signature in database
3 changed files with 8 additions and 6 deletions

View file

@ -2470,7 +2470,7 @@ regression_table_create <- function(x, ..., args.list = NULL, fun = "gtsummary::
if (any(c(length(class(x)) != 1, class(x) != "lm"))) {
if (!"exponentiate" %in% names(args.list)) {
args.list <- c(args.list, list(exponentiate = TRUE))
args.list <- c(args.list, list(exponentiate = TRUE, p.values = TRUE))
}
}
@ -4078,7 +4078,9 @@ server <- function(input, output, session) {
##############################################################################
shiny::observeEvent(rv$data_original, {
rv$data <- rv$data_original |> default_parsing()
rv$data <- rv$data_original |>
default_parsing() |>
janitor::clean_names()
})
shiny::observeEvent(input$data_reset, {
@ -4459,8 +4461,8 @@ server <- function(input, output, session) {
}
})()
gtsummary::as_kable(rv$list$table1) |>
readr::write_lines(file="./www/_table1.md")
# gtsummary::as_kable(rv$list$table1) |>
# readr::write_lines(file="./www/_table1.md")
}
)

View file

@ -5,6 +5,6 @@ account: agdamsbo
server: shinyapps.io
hostUrl: https://api.shinyapps.io/v1
appId: 13611288
bundleId: 9687629
bundleId: 9693816
url: https://agdamsbo.shinyapps.io/freesearcheR/
version: 1

View file

@ -351,7 +351,7 @@ ui_elements <- list(
inputId = "add_regression_p",
label = "Add p-value",
inline = TRUE,
selected = "no",
selected = "yes",
choices = list(
"Yes" = "yes",
"No" = "no"