ASKurz / Statistical_Rethinking_with_brms_ggplot2_and_the_tidyverse_2_ed

The bookdown version lives here:
https://bookdown.org/content/4857/
Creative Commons Zero v1.0 Universal
125 stars 37 forks source link

Section 4.4.3.4. Predictions for E{height} at a given weight #44

Closed dipetkov closed 1 year ago

dipetkov commented 1 year ago

In this code snippet:

mu_at_50 <- 
  post %>% 
  transmute(mu_at_50 = b_Intercept + b_weight_c + 5.01)

Is the formula for mu_at_50 correct?

Or should we compute it as mu_at_50 = b_Intercept + b_weight_c * 5.01?

ASKurz commented 1 year ago

Good catch! Yeah, I think mu_at_50 = b_Intercept + b_weight_c * 5.01 is the way to go.

ASKurz commented 1 year ago

@dipetkov, I'll close this issue after I've made this correction in the next version of the ebook.