BaşlayınÜcretsiz Başlayın

Plotting Model Uncertainty

Because we used a Bayesian estimation, we can use the posterior distributions to create a predicted regression line from each draw in our posterior samples. These lines will show the uncertainty around our overall line. The songs and stan_model objects are already loaded, along with the model_intercept and model_slope that you used in the last exercise.

Bu egzersiz

Bayesian Regression Modeling with rstanarm

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Save the values from each draw of the posterior distribution
draws <- ___(stan_model, `___`, `___`)

# Print the `draws` data frame to the console
___
Kodu Düzenle ve Çalıştır