Shiny Application for expertsurv"

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>")

options(rmarkdown.html_vignette.check_title = FALSE)

R packages have many advantages, primarily allowing for easy sharing and documentation of code and ensuring code follows standardised conventions. Although R packages are more user friendly than a collection of functions, they still require the user to have a working knowledge of R something which most experts will not have.

As noted by [@Mikkola.2021], there is a need for tools which can embed the elicitation of expert opinion within the statistical workflow. One such tool is Shiny, an open-source R package that provides an elegant and powerful web framework for building web applications using R. Shiny can turn analyses conducted by R into interactive web applications without requiring HTML, CSS, or JavaScript knowledge [@Shiny.2023].

Learning how to interact with a webpage should be a much simpler task for experts and health economists not familiar with R. Furthermore, we can leverage R Markdown to create reproducible reports of the relevant outputs of the $\texttt{expertsurv}$ package in formats such as PDF, HTML and Word.

The tutorial below provides an overview of the steps required to elicit expert opinion on the survival at a timepoint of 20 months and incorporate these beliefs with survival data. To begin we simply run the following function $\texttt{elicit_surv}()$ which will open up a webpage.

In Figure \@ref(fig:expertsurv-1) we have the following steps to upload the data:

knitr::include_graphics("plots/ShinyExpertSurv-1.png")

In Figure \@ref(fig:expertsurv-2) we have the following steps to elicit the expert's opinions:

Once these steps are complete, we click the ''Plot/Update Survival Curves and Expert Opinions'' button.

knitr::include_graphics("plots/ShinyExpertSurv-2.png")

In Figure \@ref(fig:expertsurv-2) we have the following steps to run the analysis:

knitr::include_graphics("plots/ShinyExpertSurv-3.png")
knitr::include_graphics("plots/ShinyExpertSurv-4.png")

References



Try the expertsurv package in your browser

Any scripts or data that you put into this service are public.

expertsurv documentation built on Oct. 5, 2023, 5:09 p.m.