as.PhViD is a function that converts a data.frame into an object that can be used in the signal detection method functions.as.PhViD(DATA.FRAME, MARGIN.THRES = 1)data.frame has to be structured as follows1st 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.data.frame that contains the labels of the drugs and the adverse events.data.frame that contains the number of spontaneous reports (n11) and the corresponding marginal counts as well (n1. and n.1).