Literature DB >> 33306050

Bayesian methods for clinicians.

Razieh Bidhendi Yarandi1,2, Kazem Mohammad1, Hojjat Zeraati1, Fahimeh Ramezani Tehrani2, Mohammad Ali Mansournia1.   

Abstract

Background: The Bayesian methods have received more attention in medical research. It is considered as a natural paradigm for dealing with applied problems in the sciences and also an alternative to the traditional frequentist approach. However, its concept is somewhat difficult to grasp by nonexperts. This study aimed to explain the foundational ideas of the Bayesian methods through an intuitive example in medical science and to illustrate some simple examples of Bayesian data analysis and the interpretation of results delivered by Bayesian analyses. In this study, data sparsity, as a problem which could be solved by this approach, was presented through an applied example. Moreover, a common sense description of Bayesian inference was offered and some illuminating examples were provided for medical investigators and nonexperts.
Methods: Data augmentation prior, MCMC, and Bayes factor were introduced. Data from the Khuzestan study, a 2-phase cohort study, were applied for illustration. Also, the effect of vitamin D intervention on pregnancy outcomes was studied.
Results: Unbiased estimate was obtained by the introduced methods.
Conclusion: Bayesian and data augmentation as the advanced methods provide sufficient results and deal with most data problems such as sparsity.
© 2020 Iran University of Medical Sciences.

Entities:  

Keywords:  Bayesian inference; Data augmentation; MCMC; Prior information

Year:  2020        PMID: 33306050      PMCID: PMC7711039          DOI: 10.34171/mjiri.34.78

Source DB:  PubMed          Journal:  Med J Islam Repub Iran        ISSN: 1016-1430


↑ What is “already known” in this topic:

The increase in the use of Bayesian analysis in the medical researches has made it essential to present its complex concepts in a lucid language. To many nonexpert users, their computationally-intensive approaches have the form of a “black box”.

→ What this article adds:

This study aimed at offering a common sense description of Bayesian inference through an intuitive approach and providing some illuminating examples for medical investigators and nonexperts.

Introduction

Bayesian methods, dating back to the 18th century, were introduced by the English statistician and philosopher Thomas Bayes in an essay released after his death (1, 2). Its application faced with some obstacles and controversies such as computational obstacles and prior selection challenge through decades (3-6). It starts with questing the degree of belief related to a concept and then updating it with the available evidence. The concept of Bayesian inference is intuitive as something you may be faced with in everyday life, which made it popular in all aspects of science (7). During the last few years, Bayesian application has increased drastically, offering pragmatic solutions for problems that a traditional approach fails to deal with (8). For instance, biased data may occur in some circumstances, including data sparsity, presence of outliers, censoring, and confounding variable selection. Bayesian methods have gained huge popularity due to the flexibility of modelling through a computer software to deal with these issues. Data sparsity occurs in the case of rare events or when some values of the predictor are associated with only 1 outcome value called separation (9); eg, when all cases of macrosomia occurred in women with gestational diabetes mellitus. In this case, estimated measures of association are subjected to bias with very big values and extraordinary wide ranges of 95% CI. The Bayesian approach can be considered as a remedial tool in this case (10-13). Conceptually, now is not the era of starting everything from scratch; you may have “prior” knowledge about an investigation, as you know the probability of catching a cold in winter is higher. In this case, the question is to estimate a parameter, here probability of catching a cold, so you will first start collecting data to find the “likelihood” of catching a cold by objective evidence. If you are a frequentist, you are done by only analyzing the obtained data ignoring any prior information. Contrary to frequentist approach, Bayesian method accounts the prior knowledge in the process of analysis to estimate “posterior” knowledge of the probability of catching cold. Statistically speaking, by considering a prior distribution for the parameter of interest, the likelihood of data and Bayes rule, you can estimate the posterior distribution of the parameter.

Bayes Rule: Posterior distribution µ prior distribution´ likelihood of data

In this study, it was aimed to provide a gentle technical introduction with an application to Bayesian inference useful for researchers in the medical fields. First, a short overview is presented regarding the history, concept, and definition of some jargons in this area of statistics and then its application is illustrated through an illuminating example along with its Stata software code to show how these ideas can be put into practice. Here, it is tried to make the concepts more tangible for nonexperts. Also, a neat catalogue of references in case readers are more interested in the bigger picture, more details, or a more advanced coverage of the topic is provided.

Methods

Bayesian approach in data analysis

Since its inception, there have been vigorous debates regarding the application of the Bayesian approach as an alternative to classical methods (4, 6, 14). The fundamental idea in Bayesian inference is to combine the prior knowledge and the available evidence. One can update one’s knowledge when additional information becomes available. For example, you want to know the probability of breast cancer in a seemingly healthy woman (Fig. 1). Of course, the probability would be different if she were tested positive on a screening test. Bayes rule takes this extra information into account and shows how it should be evaluated. In this case, one would like to calculate posterior probability of having breast cancer given the positive test. Bayes rule combines the prior information of the positive test with the likelihood of a positive test given having the disease as below:
Fig. 1
Diagram represents sensitivity, specificity, true positive, and true negative P(A): Probability of having the disease = 2% P(B) = Probability of positive test = sum of probabilities of all independent ways to achieve a positive test = probability of true positive + probability of false positive = (having cancer × true positive) + (not having cancer × false positive) = (0.02 × .8) + (0.98 × 0.15) = 0.163 P (B | A) = probability of positive test given having the disease = 80% P (A | B) = P (B | A) P(A)/P(B) = (.8×.02)/0.163 = 9.8%. It shows that considering the prior information of the positive test increases the probability of diagnostic positive from 2% to 9.8%. Calculating the posterior measures by classical Bayes rule was not that much straightforward, and in some cases needed intensive computation, which is why it was set aside for a long time until the advent of the computer (15). In this case, instead of calculating the posterior, methods were introduced to simulate it. The posterior simulation methods were evolved by the emergence of the MCMC approach in the 1990s, which is actually a computer-driven sampling approach. In this study, the mechanism of MCMC sampling was represented with Metropolis-Hastings algorithm through an example (Appendix). Generally speaking, prior information is also a key part of Bayesian methods and illustrates the knowledge about an uncertain parameter of estimate that is combined with the likelihood of data to provide the posterior measure (15, 16). Robust Bayesian analysis showed how much Bayesian answers are sensitive to uncertain inputs. Under certain conditions, which is large sample size, the prior is dominated by the likelihood of data, so evaluation of the true prior may not be required. In this regard, the prior effect is consistent with a large set of informative and diffuse priors. On the other hand, a Bayesian method that utilizes weakly informative priors to quantify the sensitivity of parameters to sparse data was proposed. Parameter estimates will be shrunk to the prior mean in case of the sparseness. In practice, to check the influence of prior distributions, the sensitivity analysis can be applied, which compares the posterior inferences under various reasonable selections of prior distributions (17-20). The interpretation of posterior results can also be very straightforward. Posterior credible interval and Bayes factor are introduced instead of 95% confidence interval and p value. Also, 95% credible interval shows there is a probability of 0.95 that Bayesian calculated parameter of interest is within this set, which is precisely like what is sometimes wrongly interpreted as frequentist estimates. While true frequentist interpretation of 95% CI is the interval which will contain the true value on 95% of occasions if a study were repeated many times using samples from the same population.

Data augmentation prior approach

An easy and more tangible method of data augmentation prior (DAP) was introduced as an alternative to Bayesian methods (10-12). Its concept is truly straightforward. First, translate prior to a so-called pseudo data, and then add this amount of information to the real dataset; then, ordinary methods of calculating parameters of interest can be applied. Contrary to the Bayesian approach whose concept is like a black-box and in some cases takes much time to gain results, DAP provides a more understandable and applicable estimation process. We presented the result of an illustrative example by DAP method as well, and the results are virtually identical (21). Below proved an illustration of DAP method by a simple example: Consider that in a clinical trial LnOR (Variance of lnOR) for an event were estimated as LnOR = 2.0 (Variance of lnOR =1.0). The prior information for OR with 95% limits between and 4 was obtained from a meta-analysis. Mean and variance of prior for Ln (OR) are estimated as follow: Therefore, a normal prior with 0 mean and 0.5 variance was defined. The contribution of prior and data information to estimate posterior mean and variance could be assessed through their inverse variances equaling and , showing that prior information dominated the data information by nearly 2 times. Posterior mean and variance for Ln (OR) could be estimated as the following weighted averaging rule of thumb; posterior mean for posterior variance for and 95% posterior CI for The width of CI obtained from this method was narrower than the ordinary approach. The “Penlogit” is a Stata command for DAP (22).

Bayes factor approach

Bayes factor is a Bayesian approach to hypothesis testing. It measures the strength of evidence by providing a number for quantifying the evidence in favor of a scientific hypothesis. To clarify more, Bayes factor compares the relative likelihood given to both null and alternative hypotheses, while p value is estimated based on just the null hypothesis (H0) (23). By Bayes rule, posterior odds in favor of H0 would be the prior odds multiplied by likelihood ratio, namely, the Bayes factor, where Bayes factor equaled the ratio of likelihood of data under the null hypothesis to the likelihood of data under the alternative hypothesis. In fact, prior odds are transformed to posterior odds via Bayes factor, which presents how a belief is changed by data. In other words, Bayes factor is the evidence for the alternative hypothesis versus the null hypothesis. Bayes factor equal 1 provides no evidence, 1/3 – 1: anecdotal evidence for H1, 1/3 – 1/10: moderate evidence for H1, 1/10 – 1/30: strong evidence for H1, 1/30 – 1/100: very strong evidence for H1, < 1/100: extreme evidence for H1 (23-26).

Illustrative example

Effect of vitamin D intervention on neonatal death: Data were extracted from the Khuzestan study, a 2-phase cohort study. The effect of vitamin D intervention on pregnancy outcomes was studied, and the details of the study protocol have previously been published (27). The contingency table shows a cell has only one observation, which is subjected to data sparsity. In this case, the ordinary logistic regression fails to truly calculate the odds ratio and 95% CI. The big odds ratio of neonatal death and the unusually wide confidence interval represent the bias estimation of the measures OR = 125 (95% CI: 15.8 to 1000). The data were reanalyzed by the Bayesian and DAP approaches with various priors, ranging from strong (low variance) to weak prior information for logistic regression coefficient. A common distribution for regression coefficient is normal distribution (28). The mean of 0 and variance of 0.5 were considered to 10 provide various degree of beliefs regarding the magnitude of the relationship between exposure and disease.

Results

Table 1 shows the median of prior (95% prior limits). Results revealed a reasonable shrink of ORs and 95% credible intervals, especially for stronger prior (Table 2), which is in line with the literature (29, 30). The results for Bayesian and DAP approaches are almost the same. In addition, to test the null hypothesis (H0: Beta = 0), Bayes factor approach was applied, and the result showed that the evidence did not worth more than a bare mention in favor of H0. Therefore, vitamin D intervention significantly decreased the odds of neonatal death. Stata codes for the Bayesian and DAP approaches are available in the Appendix.
Table 1

Different classes of Prior information with plausible ranges: median (95%limit)

PriorsExact prior median OR95% prior limit OR
Normal (0, 0.5)1(1/4, 4)
Normal (0,1) 1(1/7, 7)
Normal (0, 1.38)1(1/10, 10)
Normal (0,2) 1(1/16, 16)
Normal (0,10) 1(1/492, 492)
Table 2

Intervention and Neonatal Death contingency table and results of logistic regression

No-InterventionIntervention
Neonatal deathYes151
No97787
Ordinary Logistic Regression Approach
BetaSEOR=exp (Beta)95% Confidence Interval (P-value)
4.82.03220612515.8 to1000 (P=0.000)
MCMC Approach
PriorPosterior Mean of Beta MCSE OR=exp (Beta)95% Credible Interval (P-value)
Normal (0, 0.5)2.5.01187712.25.7 to 27.1
Normal (0,1) 3.2.01629923.89.1 to 62.5
Normal (0, 1.38)3.4.01870429.99.8 to 85.4
Normal (0,2) 3.6.01688536.511.1 to 122.6
Normal (0,10) 4.7.031016112.422.2 to 909
DAP Approach
PriorPenalized BetaSEOR=exp (Beta)95% Credible Interval (P-value)
Normal (0, 0.5)2.5.422635912.55.5 to 28.8
Normal (0,1) 3.1.503227322.78.3 to 62.5
Normal (0, 1.38)3.4.547338828.99.8 to 84.4
Normal (0,2) 3.6.60261237.511.5 to 121.6
Normal (0,10) 4.8.8479396118.820.1 to 909
Bayes Factor Approach
Prior oddsfor null hypothesis *Bayes factor Posterior oddsfor null hypothesis Evidence
10.00000310.0000031 Evidence not worth more than a bare mention in favor of H0

€Monte Carlo estimation of standard error for Beta regression coefficient

* The ratio of likelihood of data in model with intercept effect versus model with intercept and vitamin D-intervention effects

€Monte Carlo estimation of standard error for Beta regression coefficient * The ratio of likelihood of data in model with intercept effect versus model with intercept and vitamin D-intervention effects

Discussion

The volume of literature published on Bayesian inference has proved its popularity among medical studies (31-41). In this study, it was aimed to present some Bayesian approaches in an intuitive language for clinicians. Bayesian and DAP methods were run on data of Khuzestan cohort study, which were subjected to sparse data problem to illustrate the application. DAP and MCMC both provided almost the same result, while generally DAP is a more understandable and convenient method, especially for nonexperts (42). Generally, Bayesian and data augmentation as the advanced methods provide sufficient results, unbiased estimates, and deal with most data problems such as sparsity when traditional frequentist method fails.

Conclusion

This study demonstrated the foundational concepts of Bayesian inference through an intuitive illustration for nonexperts.

Acknowledgements

The authors would like to acknowledge Dr. Maryam Rostami and the staff of the Reproductive Endocrinology Research Center, Research Institute for Endocrine Sciences, Shahid Beheshti University of Medical Sciences for data preparation.

Conflict of Interests

The authors declare that they have no competing interests.
  20 in total

1.  Toward evidence-based medical statistics. 2: The Bayes factor.

Authors:  S N Goodman
Journal:  Ann Intern Med       Date:  1999-06-15       Impact factor: 25.391

2.  Introduction to Bayesian methods I: measuring the strength of evidence.

Authors:  Steven N Goodman
Journal:  Clin Trials       Date:  2005       Impact factor: 2.486

3.  Bayesian perspectives for epidemiological research: I. Foundations and basic methods.

Authors:  Sander Greenland
Journal:  Int J Epidemiol       Date:  2006-01-30       Impact factor: 7.196

Review 4.  Bayesians and frequentists.

Authors:  J M Bland; D G Altman
Journal:  BMJ       Date:  1998-10-24

5.  Bayesian regression in SAS software.

Authors:  Sheena G Sullivan; Sander Greenland
Journal:  Int J Epidemiol       Date:  2012-12-10       Impact factor: 7.196

6.  Markov chain Monte Carlo: an introduction for epidemiologists.

Authors:  Ghassan Hamra; Richard MacLehose; David Richardson
Journal:  Int J Epidemiol       Date:  2013-04       Impact factor: 7.196

7.  Separation in Logistic Regression: Causes, Consequences, and Control.

Authors:  Mohammad Ali Mansournia; Angelika Geroldinger; Sander Greenland; Georg Heinze
Journal:  Am J Epidemiol       Date:  2018-04-01       Impact factor: 4.897

8.  Bayesian Zero- Inflated Poisson model for prognosis of demographic factors associated with using crystal meth in Tehran population.

Authors:  Asma Pourhoseingholi; Ahmad Reza Baghestani; Erfan Ghasemi; Alireza Akbarzadeh Baghban; Mariet Ghazarian
Journal:  Med J Islam Repub Iran       Date:  2018-03-19

9.  A brief guide to propensity score analysis.

Authors:  Ameneh Ebrahim Valojerdi; Leila Janani
Journal:  Med J Islam Repub Iran       Date:  2018-12-07

10.  Vitamin D Status and Associated Factors in Neonates in a Resource Constrained Setting.

Authors:  Khadija Murtaza Bhimji; Helga Naburi; Said Aboud; Karim Manji
Journal:  Int J Pediatr       Date:  2018-07-05
View more
  1 in total

1.  Prevalence, causes, and consequences of moral distress in healthcare providers caring for people living with dementia in long-term care during a pandemic.

Authors:  Lynn Haslam-Larmer; Alisa Grigorovich; Hannah Quirt; Katia Engel; Steven Stewart; Kevin Rodrigues; Pia Kontos; Arlene Astell; Josephine McMurray; AnneMarie Levy; Kathleen S Bingham; Alastair J Flint; Colleen Maxwell; Andrea Iaboni
Journal:  Dementia (London)       Date:  2022-10-14
  1 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.