Giter VIP home page Giter VIP logo

vedol_panc's Introduction

vedol_panc

Signal detection for the adverse reaction of pancreatitis in vedolizumab use

How to run code

The following steps will allow you to run analyse_vedol_panc.R to reproduce Table 2 and Figure 1 of Duszynski et al. (2022):

  • Make sure you have R and RStudio installed.
  • Download the vedol_panc.zip file (on the repo page: green Code button -> Download ZIP button).
  • Unzip the download.
  • Double click the vedol_panc.Rproj file - this should open an RStudio session.
  • (only has to be performed once) Make sure the prerequisite packages are installed by running the below command in the R console:
install.packages(
  c(
    "arrow", "dplyr", "tibble", 
    "ggplot2", "knitr", "tidyr"
  )
)
# install pharmsignal package from github
# NOTE: devtools package needs to be installed - please see 
#    https://www.r-project.org/nosvn/pandoc/devtools.html
devtools::install_github('tystan/pharmsignal')
  • Now the code is ready to be run:
    • Open the analyse_vedol_panc.R file by clicking on Files tab in the Files/Plots/Packages/... pane of RStudio.
    • Now to finally run the code in analyse_vedol_panc.R in the R console.

Code outputs: Table 2 and Figure 1

Table 2: Signal detection estimates and 95% confidence intervals (RSIC = 2^IC using BCPNN MCMC) of vedolizumab v other comparators for pancreatitis

|Comparator       | N vedol and panc| N vedol| N comparator and panc| N comparator|RSIC = 2^IC        |
|:----------------|----------------:|-------:|---------------------:|------------:|:------------------|
|(1) All          |              124|   19034|                 21272|      7067209|2.15 (1.79, 2.54)* |
|(2) mAbs         |              124|   19034|                  1550|       558201|2.24 (1.87, 2.63)* |
|(3) IRAs         |              124|   19034|                    78|        35486|1.75 (1.56, 1.94)  |
|(4) All IBD indi |               96|   14797|                   824|       125466|0.99 (0.81, 1.18)  |
|(4a) CD indi     |               40|    7885|                   537|        89236|0.86 (0.62, 1.12)  |
|(4b) CU indi     |               52|    6538|                   265|        35658|1.06 (0.81, 1.33)  |

Figure 1: Signal detection estimates and 95% confidence intervals (RSIC = 2^IC using BCPNN MCMC) of vedolizumab v other comparators for pancreatitis.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.