Changing Priors
Now let's change the prior distributions for our Spotify model. Changing the priors allows us to specify our own beliefs about the expected values of the parameters. The songs
dataset is already loaded.
This exercise is part of the course
Bayesian Regression Modeling with rstanarm
Exercise instructions
- Predict
popularity
fromsong_age
- Create a model,
flat_prior
that uses flat priors for all parameters - Print a summary of the prior distributions to the screen
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Estimate a model with flat priors
flat_prior <- stan_glm(___, data = ___,
___ = ___, ___ = ___, ___ = ___)
# Print a prior summary
___(flat_prior)