ASKurz / Statistical_Rethinking_with_brms_ggplot2_and_the_tidyverse

The bookdown version lives here: https://bookdown.org/content/3890
GNU General Public License v3.0
393 stars 92 forks source link

Model 11.5 #6

Closed ASKurz closed 6 years ago

ASKurz commented 6 years ago

I don’t believe brms allows for the beta-binomial likelihood, yet. So we don’t have a way to fit McElreath’s:

m11.5 <- map2stan(
    alist(
        admit ~ dbetabinom(applications,pbar,theta),
        logit(pbar) <- a,
        a ~ dnorm(0,2),
        theta ~ dexp(1)
    ),
    data=d,
    constraints=list(theta="lower=0"),
    start=list(theta=3),
    iter=4000 , warmup=1000 , chains=2 , cores=2 )

Correspondingly, we don’t have a good version of Figure 11.5.

paul-buerkner commented 6 years ago

See https://github.com/paul-buerkner/brms/blob/master/vignettes/brms_customfamilies.Rmd

ASKurz commented 6 years ago

Paul, this is tremendous and the vignette is coming along nicely, too!