BCPNN: Bayesian confidence propagation neural network

Description Usage Arguments Details Value Author(s) References Examples

Description

Bayesian confidence propagation neural network (Bate et al. 1998, Noren et al. 2006) extended to the multiple comparison framework.

Usage

1
2
BCPNN(DATABASE, RR0 = 1, MIN.n11 = 1, DECISION = 1, DECISION.THRES = 0.05, 
RANKSTAT = 1, MC = FALSE, NB.MC = 10000)

Arguments

DATABASE

Object returned by the function as.PhViD.

RR0

Value of the tested risk. By default, RR0=1.

MIN.n11

Minimum number of notifications for a couple to be potentially considered as a signal. By default, MIN.n11 = 1.

DECISION

Decision rule for the signal generation based on

1 = FDR (Default value)

2 = Number of signals

3 = Ranking statistic. See RANKSTAT

DECISION.THRES

Threshold for DECISION. Ex 0.05 for FDR (DECISION=1).

RANKSTAT

Statistic used for ranking the couples:

1 = Posterior probability of the null hypothesis

2 = 2.5% quantile of the posterior distribution of IC.

MC

If 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 counts).

NB.MC

If MC=TRUE, NB.MC indicates the number of Monte Carlo simulations to be done

Details

The BCPNN method is based on the calculation of the Information Component IC. If 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.

Value

ALLSIGNALS

Data.frame summarizing the results of all couples with at least MIN.n11 notifications ordered by RANKSTAT. It contains notably the labels, the cell counts, the expected counts (n1. * 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.

SIGNALS

Same Data.frame as ALLSIGNALS but restricted to the list of generated signals.

NB.SIGNALS

Number of generated signals.

INPUT.PARAM

Parameters entered in the function.

Author(s)

Ismaïl Ahmed & Antoine Poncet

References

Ahmed I, Haramburu F, Fourrier-Réglat A, Thiessard F, Kreft-Jais C, Miremont-Salamé G, Bégaud B, Tubert-Bitter P. Bayesian pharmacovigilance signal detection methods revisited in a multiple comparison setting. Stat Med. 2009 Jun 15;28(13):1774-1792.

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.

Examples

1
2
3
4
5
## start
data(PhViDdata.frame)
PhViDdata <- as.PhViD(PhViDdata.frame)
# res <- BCPNN(PhViDdata)
## end

Example output

Loading required package: LBE
Loading required package: MCMCpack
Loading required package: coda
Loading required package: MASS
##
## Markov Chain Monte Carlo Package (MCMCpack)
## Copyright (C) 2003-2021 Andrew D. Martin, Kevin M. Quinn, and Jong Hee Park
##
## Support provided by the U.S. National Science Foundation
## (Grants SES-0350646 and SES-0350613)
##

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