Chapter 16

Metric Predicted Variable with One Metric Predictor

Contents

16.1 Simple Linear Regression

16.1.1 The Hierarchical Model and BUGS Code

16.1.2 The Posterior: How Big Is the Slope?

16.1.3 Posterior Prediction

16.2 Outliers and Robust Regression

16.3 Simple Linear Regression with Repeated Measures

16.4 Summary

16.5 R Code

16.5.1 Data Generator for Height and Weight

16.5.2 BRugs: Robust Linear Regression

16.5.3 BRugs: Simple Linear Regression with Repeated Measures

16.6 Exercises

The agri-bank’s threatnin’ to revoke my lease

If my field’s production don’t rapid increase.

Oh Lord how I wish I could divine the trend,

Will my furrows deepen, and will my line end?

In this chapter we consider situations such as predicting a person’s weight from ...

Get Doing Bayesian Data Analysis now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.