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 et al. 2023), 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 (Chang et al. 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 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 elicit_surv
() which will open up
a webpage.
In Figure @ref(fig:expertsurv-1) we have the following steps to upload the data:
Upload data and generate Kaplan-Meier plot
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.
Expert beliefs about survival at 20 months
In Figure @ref(fig:expertsurv-2) we have the following steps to run the analysis:
expertsurv
object which can be
loaded an R session later.Running statistical analysis
Results generated from the Markdown file