11/10/2021

Overview of the app

  • This app is used to predict the risk of getting esophageal cancer.
  • The linear regression prediction model is generated using the data from a case-control study of esophageal cancer in Ille-et-Vilaine, France.

Links and the source code

Overview of the data of the esophageal cancer in Ille-et-Vilaine, France

head(esoph)
##   agegp     alcgp    tobgp ncases ncontrols
## 1 25-34 0-39g/day 0-9g/day      0        40
## 2 25-34 0-39g/day    10-19      0        10
## 3 25-34 0-39g/day    20-29      0         6
## 4 25-34 0-39g/day      30+      0         5
## 5 25-34     40-79 0-9g/day      0        27
## 6 25-34     40-79    10-19      0         7

How to use the app

  1. The “assignment” shiny application needs 3 inputs: age, the average daily alcohol consumption (gram), and the average daily tobacco consumption (gram). You can enter these information from the left panel of the app.
  2. A multivariate linear regression will be run using the French esophageal cancer data, and a predicted risk of esophageal cancer (in proportion) will displayed, as well as the 95% confidence interval (CI).
  3. The original French esophageal cancer data (small dots), as well as the data point that you just entered (a big dot), will appear as a 3D scatter plot at the bottom right. The predicted risk of getting esophageal cancer is illustrated using the color of the dot.