getPValue: This function calculates the p-value for GEA.

Description Usage Arguments Details Value Examples

View source: R/functions.R

Description

This function will detect signals for a given adverse drug event pair based on the biomedical literature (MEDLINE) using GEA.

Usage

1
getPValue(drug, event, abstraction)

Arguments

event

The MeSH term for the adverse event of interest.

abstraction

The abstraction layer object for specified abstraction level.

atccode

The ATC code for the drug of interest.

Details

Calculates significane of co-occurrence of drug and adverse event in comparison to large reference set (all MEDLINE). Returns p-value for given drug - adverse event pair.

Value

P-value for co-occurrence of a given drug - adverse event pair.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{

  library("GEA")
  
  drugs <- Drugs("drugs_ATC_MEDLINE_360k.txt")
  events <- AdverseEvents("manifestations_MEDLINE_360k.txt")
  abs710    <- getAbstractionLayer(drugs,events,c(7,10))
  
  getPValue("R03DC01","D058186",abs710)
}

winnenbr/GEA documentation built on May 4, 2019, 6:32 a.m.