Looking at samples from prop_model
Here again is the prop_model function which has been given the data from our zombie experiment where two out of 13 zombies got cured. In addition to producing a plot, prop_model also returns a large random sample from the posterior over the underlying proportion of success.
Este exercício faz parte do curso
Fundamentals of Bayesian Data Analysis in R
Exercício interativo prático
Experimente este exercício completando este código de exemplo.
data = c(1, 0, 0, 1, 0, 0,
0, 0, 0, 0, 0, 0, 0)
# Extract and explore the posterior