Skip to content

Instantly share code, notes, and snippets.

@MJacobs1985
Created December 2, 2021 13:01
Show Gist options
  • Select an option

  • Save MJacobs1985/8e45d3dfc3083715ee48ece0ee2fbb1b to your computer and use it in GitHub Desktop.

Select an option

Save MJacobs1985/8e45d3dfc3083715ee48ece0ee2fbb1b to your computer and use it in GitHub Desktop.
m5.3_B <- quap(
alist(
ADG ~ dnorm(mu , sigma ) ,
mu <- a + b*ADF + bB*B + bI*I + bS*S + bUK*UK,
a ~ dnorm (-2, 3 ) ,
b ~ dnorm (1 , 2 ) ,
bB ~ dnorm (0 , 2 ) ,
bI ~ dnorm (-10 , 3 ) ,
bS ~ dnorm (4 , 2 ) ,
bUK ~ dnorm (-1 , 2 ) ,
sigma ~ dexp (2 )
) , data = dn )
plot(coeftab(m5.3_A,m5.3_B))
rethinking::compare(m5.3_A,m5.3_B, func=WAIC )
plot(rethinking::compare(m5.3_A,m5.3_B, func=WAIC ))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment