as.PhViD: data.frame to PhViD data

Description Usage Arguments Value Author(s)

Description

as.PhViD is a function that converts a data.frame into an object that can be used in the signal detection method functions.

Usage

1
as.PhViD(DATA.FRAME, MARGIN.THRES = 1)

Arguments

DATA.FRAME

The data.frame has to be structured as follows

1st column: label of the drugs

2nd column: label of the adverse events

3rd column: Number of spontaneous reports of the corresponding couple drug-adverse event.

MARGIN.THRES

This option can be used to eliminate the drugs and the adverse events for which the marginal counts are less than MARGIN.THRES.

Value

L

data.frame that contains the labels of the drugs and the adverse events.

N

sum of the spontaneous reports counts.

data

data.frame that contains the number of spontaneous reports (n11) and the corresponding marginal counts as well (n1. and n.1).

Author(s)

Ismaïl Ahmed & Antoine Poncet


PhViD documentation built on May 2, 2019, 11:37 a.m.