From ed51143a460450c0da4f8b5aa78bfc99289cf231 Mon Sep 17 00:00:00 2001 From: Francois Grolleau Date: Tue, 13 Aug 2024 12:24:58 -0700 Subject: [PATCH] minor edits to Shiny apps --- .../DevWorkshop/ROC-power/shinyapp/basic-app/app.py | 4 ++-- .../shinyapp/collins/rsconnect-python/collins.json | 2 +- scripts/DevWorkshop/ROC-power/shinyapp/index.html | 12 ++++++------ scripts/DevWorkshop/ROC-power/shinyapp/pilot/app.py | 4 ++-- .../ROC-power/shinyapp/pilot/three_panel_pilot.py | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/scripts/DevWorkshop/ROC-power/shinyapp/basic-app/app.py b/scripts/DevWorkshop/ROC-power/shinyapp/basic-app/app.py index 70dcc6a6..d3b29c21 100644 --- a/scripts/DevWorkshop/ROC-power/shinyapp/basic-app/app.py +++ b/scripts/DevWorkshop/ROC-power/shinyapp/basic-app/app.py @@ -3,7 +3,7 @@ from numpy import random from three_panel import * -app_ui = ui.page_fixed(ui.panel_title("Sample Size for Comparing Models' Area Under the ROC Curve:", "Sample Size for Comparing AUROCs"), +app_ui = ui.page_fluid(ui.panel_title("Sample Size for Comparing Models' Area Under the ROC Curve:", "Sample Size for Comparing AUROCs"), ui.h4("Specifying parameters of two joint distributions"), ui.row( ui.column( @@ -33,7 +33,7 @@ ui.input_numeric("ss", label="- Sample Size", value=260, min=100, max=100000), ui.input_slider("prev", label="- Prevalence", value=.1, step=.01, min=1e-2, max=1-1e-2), ui.input_slider("alpha_t", label="- Alpha threshold", value=.05, step=.01, min=1e-2, max=1-1e-2), - ui.input_select("n_sim", label=ui.markdown("**Choose no. of iterations to run the simulations**"), choices={0: "Zero (for parameter selection)", 100: "100 simulations (fastest, least accurate)", 500: "500 simulations (intermediate)", 2000: "2000 simulations (slowest, most accurate)"}), + ui.input_select("n_sim", label=ui.markdown("**Run the simulations**"), choices={0: "No iteration (for parameter selection)", 100: "100 iterations (fastest, least accurate)", 500: "500 iterations (intermediate)", 2000: "2000 iterations (slowest, most accurate)"}), ) ), ui.row( diff --git a/scripts/DevWorkshop/ROC-power/shinyapp/collins/rsconnect-python/collins.json b/scripts/DevWorkshop/ROC-power/shinyapp/collins/rsconnect-python/collins.json index 07f81fe8..0d95da5a 100644 --- a/scripts/DevWorkshop/ROC-power/shinyapp/collins/rsconnect-python/collins.json +++ b/scripts/DevWorkshop/ROC-power/shinyapp/collins/rsconnect-python/collins.json @@ -5,7 +5,7 @@ "app_url": "https://francois-grolleau.shinyapps.io/prec_auroc1/", "app_id": 12432652, "app_guid": null, - "title": "prec_auroc", + "title": "prec_auroc1", "app_mode": "python-shiny", "app_store_version": 1 } diff --git a/scripts/DevWorkshop/ROC-power/shinyapp/index.html b/scripts/DevWorkshop/ROC-power/shinyapp/index.html index 5c9817ac..3a8a6997 100644 --- a/scripts/DevWorkshop/ROC-power/shinyapp/index.html +++ b/scripts/DevWorkshop/ROC-power/shinyapp/index.html @@ -52,7 +52,7 @@ margin-top: 10px; /* Add space between list items */ } .dash-list li::before { - content: "-"; + content: "\2192"; margin-right: 8px; } .zoom-link { @@ -79,19 +79,19 @@

powerROC v0.1

-

For the evaluation of clinical prediction models, the TRIPOD+AI statement requires that researchers report how the sample size was arrived at and justify that this sample size was sufficient to answer the research question.

+

For the evaluation of clinical prediction models, the TRIPOD+AI statement mandates reporting the process of determining the sample size and justifying its sufficiency in addressing the research question.

powerROC is a web application that helps researchers determine the sample size required to estimate the area under the receiver operating characteristic curve (AUROC) with a desired level of precision or to compare the AUROCs of two models with a desired level of power.


- For any inquiries or further assistance, please contact François Grolleau at grolleau@stanford.edu.
+ For any inquiries or further assistance, please contact François Grolleau at grolleau [ a t ] stanford.edu.
© 2024 PowerROC. All rights reserved.