1. Learn
  2. /
  3. Courses
  4. /
  5. Bayesian Regression Modeling with rstanarm

Exercise

Calculating the LOO estimate

Now let's practice using the loo package on our Spotify model so that we can determine which model provides the best fit to our data. The songs dataset is already loaded.

Instructions

100 XP
  • Estimate a model predicting popularity from song_age
  • Print the LOO approximation for this model with 1 predictor
  • Estimate a model predicting popularity from song_age, artist_name, and their interaction
  • Print the LOO approximation for this model with 2 independent variables