Hostname: page-component-76d6cb85b7-lrvh5 Total loading time: 0 Render date: 2026-07-11T14:18:40.567Z Has data issue: false hasContentIssue false

Bayesian Analysis of Anova and Mixed Models on the Log-Transformed Response Variable

Published online by Cambridge University Press:  01 January 2025

Aldo Gardini*
Affiliation:
Università di Bologna
Carlo Trivisano
Affiliation:
Università di Bologna
Enrico Fabrizi
Affiliation:
Università Cattolica del S. Cuore
*
Correspondence should be made to Aldo Gardini, Dipartimento di Scienze Statistiche ʽP. Fortunatiʼ, Università di Bologna, Bologna, Italy. aldo.gardini2@unibo.it; https://www.unibo.it/sitoweb/aldo.gardini2
Rights & Permissions [Opens in a new window]

Abstract

The analysis of variance, and mixed models in general, are popular tools for analyzing experimental data in psychology. Bayesian inference for these models is gaining popularity as it allows to easily handle complex experimental designs and data dependence structures. When working on the log of the response variable, the use of standard priors for the variance parameters can create inferential problems and namely the non-existence of posterior moments of parameters and predictive distributions in the original scale of the data. The use of the generalized inverse Gaussian distributions with a careful choice of the hyper-parameters is proposed as a general purpose option for priors on variance parameters. Theoretical and simulations results motivate the proposal. A software package that implements the analysis is also discussed. As the log-transformation of the response variable is often applied when modelling response times, an empirical data analysis in this field is reported.

Information

Type
Theory and Methods
Creative Commons
Creative Common License - CCCreative Common License - BY
This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
Copyright
Copyright © 2021 The Author(s)
Figure 0

Table 1. Bias and RMSE for the considered estimators of θm\documentclass[12pt]{minimal}\usepackage{amsmath}\usepackage{wasysym}\usepackage{amsfonts}\usepackage{amssymb}\usepackage{amsbsy}\usepackage{mathrsfs}\usepackage{upgreek}\setlength{\oddsidemargin}{-69pt}\begin{document}$$\theta _m$$\end{document} in the different scenarios with ng=2\documentclass[12pt]{minimal}\usepackage{amsmath}\usepackage{wasysym}\usepackage{amsfonts}\usepackage{amssymb}\usepackage{amsbsy}\usepackage{mathrsfs}\usepackage{upgreek}\setlength{\oddsidemargin}{-69pt}\begin{document}$$n_g=2$$\end{document}.

Figure 1

Table 2. RABias and RRMSE for the considered estimators of the group-specific expectations in the different scenarios with ng=2\documentclass[12pt]{minimal}\usepackage{amsmath}\usepackage{wasysym}\usepackage{amsfonts}\usepackage{amssymb}\usepackage{amsbsy}\usepackage{mathrsfs}\usepackage{upgreek}\setlength{\oddsidemargin}{-69pt}\begin{document}$$n_g=2$$\end{document}.

Figure 2

Table 3. Posterior means and standard deviations obtained for the whole dataset (n=547\documentclass[12pt]{minimal}\usepackage{amsmath}\usepackage{wasysym}\usepackage{amsfonts}\usepackage{amssymb}\usepackage{amsbsy}\usepackage{mathrsfs}\usepackage{upgreek}\setlength{\oddsidemargin}{-69pt}\begin{document}$$n=547$$\end{document}) under three considered prior specifications.

Figure 3

Table 4. Posterior means and standard deviations obtained for a subset of the dataset (n=110\documentclass[12pt]{minimal}\usepackage{amsmath}\usepackage{wasysym}\usepackage{amsfonts}\usepackage{amssymb}\usepackage{amsbsy}\usepackage{mathrsfs}\usepackage{upgreek}\setlength{\oddsidemargin}{-69pt}\begin{document}$$n=110$$\end{document}) under three considered prior specifications.

Figure 4

Figure 1. Posterior distributions of the marginal means θm(xi=-1)\documentclass[12pt]{minimal}\usepackage{amsmath}\usepackage{wasysym}\usepackage{amsfonts}\usepackage{amssymb}\usepackage{amsbsy}\usepackage{mathrsfs}\usepackage{upgreek}\setlength{\oddsidemargin}{-69pt}\begin{document}$$\theta _m(x_i=- 1)$$\end{document} under different priors for the variance components. The results obtained with the complete and the reduced data are shown.

Supplementary material: File

Gardini et al. supplementary material

S1-S6
Download Gardini et al. supplementary material(File)
File 865.9 KB