Data Collection in Shiny
摘要
This chapter guides you through the process of using R Shiny to collect your own data for your DCE. We provide a sample code on how to implement a bare-bones DCE survey using Shiny, Google Sheets and Shinyapps.io, walking you through the following steps: (1) setting up the data storage location, (2) generating the choice tasks, and (3) creating the Shiny app. To create the Shiny app, we review the user interface, the server function, and the Shiny app function. Finally, we discuss the advantages and disadvantages of using R Shiny to implement DCE surveys.