User-friendly Bayesian regression modeling: A tutorial with rstanarm and shinystan

This tutorial provides a pragmatic introduction to specifying, estimating and interpreting single-level and hierarchical linear regression models in the Bayesian framework. We start by summarizing why one should consider the Bayesian approach to the most common forms of regression. Next we introduce...

Full description

Saved in:
Bibliographic Details
Published in:Tutorials in quantitative methods for psychology Vol. 14; no. 2; pp. 99 - 119
Main Authors: Muth, Chelsea, Oravecz, Zita, Gabry, Jonah
Format: Journal Article
Language:English
Published: Université d'Ottawa 01.04.2018
Subjects:
ISSN:1913-4126, 1913-4126
Online Access:Get full text
Tags: Add Tag
No Tags, Be the first to tag this record!
Description
Summary:This tutorial provides a pragmatic introduction to specifying, estimating and interpreting single-level and hierarchical linear regression models in the Bayesian framework. We start by summarizing why one should consider the Bayesian approach to the most common forms of regression. Next we introduce the R package rstanarm for Bayesian applied regression modeling. An overview of rstanarm fundamentals accompanies step-by-step guidance for fitting a single-level regression model with the stan_glm function, and fitting hierarchical regression models with the stan_lmer function, illustrated with data from an experience sampling study on changes in affective states. Exploration of the results is facilitated by the intuitive and user-friendly shinystan package. Data and scripts are available on the Open Science Framework page of the project. For readers unfamiliar with R, this tutorial is self-contained to enable all researchers who apply regression techniques to try these methods with their own data. Regression modeling with the functions in the rstanarm package will be a straightforward transition for researchers familiar with their frequentist counterparts, lm (or glm) and lmer.
ISSN:1913-4126
1913-4126
DOI:10.20982/tqmp.14.2.p099