Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2018 Apr 11;6(1):49-78.
doi: 10.1080/21642850.2018.1428102.

Bayesian evaluation of behavior change interventions: a brief introduction and a practical example

Affiliations

Bayesian evaluation of behavior change interventions: a brief introduction and a practical example

Matti T J Heino et al. Health Psychol Behav Med. .

Abstract

Introduction: Evaluating effects of behavior change interventions is a central interest in health psychology and behavioral medicine. Researchers in these fields routinely use frequentist statistical methods to evaluate the extent to which these interventions impact behavior and the hypothesized mediating processes in the population. However, calls to move beyond the exclusive use of frequentist reasoning are now widespread in psychology and allied fields. We suggest adding Bayesian statistical methods to the researcher's toolbox of statistical methods.

Objectives: We first present the basic principles of the Bayesian approach to statistics and why they are useful for researchers in health psychology. We then provide a practical example on how to evaluate intervention effects using Bayesian methods, with a focus on Bayesian hierarchical modeling. We provide the necessary materials for introductory-level readers to follow the tutorial.

Conclusion: Bayesian analytical methods are now available to researchers through easy-to-use software packages, and we recommend using them to evaluate the effectiveness of interventions for their conceptual and practical benefits.

Keywords: Bayes; Bayesian estimation; health behavior change; intervention evaluation; tutorial.

PubMed Disclaimer

Conflict of interest statement

No potential conflict of interest was reported by the authors.

Figures

Figure 1.
Figure 1.
Three alternative priors, with varying informativeness. Dotted line depicts N(0, 1), solid N(0, 2.5), and dashed a uniform distribution.
Figure 2.
Figure 2.
Prior (dotted) and likelihood (dashed) distributions.
Figure 3.
Figure 3.
Prior (dotted), likelihood (dashed) and posterior (solid).
Figure 4.
Figure 4.
The R console. This figure shows how to assign (R uses the left arrow, <-, for assignment) all whole numbers from 0 to 100 to a variable called numbers. Computer code can often be read from right to left, so the first line here could be read as ‘integers 0 through 100, assign to numbers’. We then calculated the mean of those numbers by using R’s built in function, mean().
Figure 5.
Figure 5.
RStudio with its text editor and R console (upper and lower left panels, respectively). The three lines of code saved into the R script ‘t-test-kids-grownups. R’ shows how to save numbers into variables, and then conduct a t-test between the variables.
Figure 6.
Figure 6.
Prior probability distributions for Model 1 in the tutorial. The left panel shows the prior distribution which is assigned to all regression coefficients β. Middle panel shows the prior distribution of the standard deviation parameter of the person-specific intercepts. Right panel shows the prior distribution for the residual standard deviation.
Figure 7.
Figure 7.
Left panel: Density curves of the posterior distributions of the four population-level regression parameters. The shaded area indicates the 95% Credible Interval, and the vertical line indicates the posterior mean. The density curves are estimated from MCMC samples, and slightly smoothed for the figure. Right panel: Trajectories of change across time for the two intervention groups (blue: control group, red: intervention group). Each line denotes the posterior mean regression line for that group, and the surrounding shades are the 95% Credible Intervals for the regression lines. The code for creating these two figures can be found in the complete code listing for this tutorial.
Figure 8.
Figure 8.
Posterior distributions of the three main population-level regression coefficients, and the transformed parameter δ (delta), which denotes the effect of time in the intervention group only.
Figure 9.
Figure 9.
Traceplot of the model’s intercept. Each of the four chains is plotted in a different hue. The posterior samples (x-axis) are connected with a line; y-axis are the samples’ values. The four chains’ traces look highly similar, suggesting to us that the MCMC approximation has worked well. If the chains looked very dissimilar, we would be prompted to further investigate the model’s performance.
Figure 10.
Figure 10.
Graphical comparison of the actual data set to replicated data sets should reveal a very similar shape of the densities, if the model fits the data well. Here, we do not see serious problems with how the model seems to replicate the data (but note that we have not taken into account the natural 1–5 limits of the response scale, or that the raw responses are ordered categories).
Figure A1.
Figure A1.
Posterior predictive check for the ordinal logistic model.

Similar articles

Cited by

References

    1. Abraham, C., Johnson, B. T., de Bruin, M., & Luszczynska, A. (2014). Enhancing reporting of behavior change intervention evaluations. JAIDS Journal of Acquired Immune Deficiency Syndromes, 66, S293–S299. doi: 10.1097/QAI.0000000000000231 - DOI - PubMed
    1. Andrews, M., & Baguley, T. (2013). Prior approval: The growth of Bayesian methods in psychology. British Journal of Mathematical and Statistical Psychology, 66(1), 1–7. doi: 10.1111/bmsp.12004 - DOI - PubMed
    1. Beard, E., Dienes, Z., Muirhead, C., & West, R. (2016). Using Bayes factors for testing hypotheses about intervention effectiveness in addictions research. Addiction, 111(12), 2230–2247. doi: 10.1111/add.13501 - DOI - PMC - PubMed
    1. Beard, E., & West, R. (2017). Using Bayesian statistics in health psychology: A comment on Depaoli et al. (2017). Health Psychology Review, 11(3), 298–301. doi: 10.1080/17437199.2017.1349544 - DOI - PubMed
    1. Benjamin, D. J., Berger, J. O., Johannesson, M., Nosek, B. A., Wagenmakers, E.-J., Berk, R., … Johnson, V. E. (2017). Redefine statistical significance. Nature Human Behaviour, 2, 6–10. doi: 10.1038/s41562-017-0189-z - DOI - PubMed

LinkOut - more resources