as.PhViD {PhViD}R Documentation

data.frame to PhViD data

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

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)

Ismail Ahmed & Antoine Poncet


[Package PhViD version 1.0.1 Index]