BCPNN(DATABASE, RR0 = 1, MIN.n11 = 1, DECISION = 1, DECISION.THRES = 0.05,
RANKSTAT = 1, MC = FALSE, NB.MC = 10000)
as.PhViD
.RR0=1
.MIN.n11 = 1
.2 = Number of signals
3 = Ranking statistic. See RANKSTAT
DECISION
. Ex 0.05 for FDR (DECISION
=1).1 = Posterior probability of the null hypothesis
2 = 2.5% quantile of the posterior distribution of IC.
MC=TRUE
, the statistic of interest (see RANKSTAT
) is calculated by Monte Carlo simulations which can be very long. If MC=FALSE
, IC is approximated by a normal distribution (which can be very crude for small countsMC=TRUE
, NB.MC
indicates the number of Monte Carlo simulations to be doneMIN.n11
notifications ordered by RANKSTAT
. It contains notably the labels, the cell counts, the expected counts ($n1. \times n.1 / N$, see as.PhViD
), RANKSTAT
, the ratios(count/expected count), the marginal counts and the estimations of FDR, FNR, Se et Sp. If RANKSTAT!=1
, the last column is the posterior probability of the null hypothesis.ALLSIGNALS
but restricted to the list of generated signals.MC = FALSE
, the bayesian model used is the beta-binomial proposed by Bate et al. (1998). The statistic of interest (see RANKSTAT
) is calculated by the normal approximation made in Bate et al. (1998) with the use of the exact expectation and variance proposed by Gould (2003). If MC = TRUE
, the model is based on the Dirichlet-multinomial model proposed more recently in Noren et al. (2006). In this case, the statistic of interest is calculated by Monte Carlo simulations.Bate A, Lindquist M, Edwards IR, Olsson S, Orre R, Lansner A, De Freitas RM, A Bayesian Neural Network Method for Adverse Drug Reaction Signal Generation European Journal of Clinical Pharmacology, 1998, 54, 315-321.
Gould AL, Practical Pharmacovigilance Analysis Strategies Pharmacoepidemiology and Drug Safety, 2003, 12, 559-574
Noren, GN, Bate A, Orre R, Edwards IR, Extending the methods used to screen the WHO drug safety database towards analysis of complex associations and improved accuracy for rare events Statistics in Medicine, 2006, 25, 3740-3757.
## start
data(PhViDdata.frame)
PhViDdata <- as.PhViD(PhViDdata.frame)
res <- BCPNN(PhViDdata)
## end
Run the code above in your browser using DataLab