as.PhViD {PhViD} | R Documentation |
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 |
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 . |
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 ). |
Ismail Ahmed & Antoine Poncet