HomeRBayesian Regression Modeling with rstanarm

# Bayesian Regression Modeling with rstanarm

Learn how to leverage Bayesian estimation methods to make better inferences about linear regression models.

4 Hours15 Videos45 Exercises

or

Training 2 or more people?Try DataCamp For Business

## Course Description

Bayesian estimation offers a flexible alternative to modeling techniques where the inferences depend on p-values. In this course, you’ll learn how to estimate linear regression models using Bayesian methods and the rstanarm package. You’ll be introduced to prior distributions, posterior predictive model checking, and model comparisons within the Bayesian framework. You’ll also learn how to use your estimated model to make predictions for new data.

### .css-1goj2uy{margin-right:8px;}Group.css-gnv7tt{font-size:20px;font-weight:700;white-space:nowrap;}.css-12nwtlk{box-sizing:border-box;margin:0;min-width:0;color:#05192D;font-size:16px;line-height:1.5;font-size:20px;font-weight:700;white-space:nowrap;}Training 2 or more people?

Try DataCamp for BusinessFor a bespoke solution book a demo.

Go To Track
1. 1

### Introduction to Bayesian Linear Models

Free

A review of frequentist regression using lm(), an introduction to Bayesian regression using stan_glm(), and a comparison of the respective outputs.

Play Chapter Now
Non-Bayesian Linear Regression
50 xp
Exploring the data
100 xp
Fitting a frequentist linear regression
100 xp
Bayesian Linear Regression
50 xp
Fitting a Bayesian linear regression
100 xp
Convergence criteria
50 xp
Assessing model convergence
50 xp
Comparing frequentist and Bayesian methods
50 xp
Difference between frequentists and Bayesians
50 xp
Creating credible intervals
100 xp
2. 2

### Modifying a Bayesian Model

Learn how to modify your Bayesian model including changing the number and length of chains, changing prior distributions, and adding predictors.

3. 3

### Assessing Model Fit

In this chapter, we'll learn how to determine if our estimated model fits our data and how to compare competing models.

4. 4

### Presenting and Using a Bayesian Regression

In this chapter, we'll learn how to use the estimated model to create visualizations of your model and make predictions for new data.

### In the following Tracks

#### Machine Learning Scientist with R

Go To Track

Datasets

Spotify dataset

Collaborators

Jake Thompson

Psychometrician, ATLAS, University of Kansas

Jake is a Psychometrician at the Center for Accessible Teaching, Learning, and Assessment Systems (ATLAS) and received his PhD in Educational Psychology and Research. His interests are include educational assessment, diagnostic classification modeling, and Bayesian inference. Follow him at @wjakethompson on Twitter or on his blog.
See More