Skip to content

Instantly share code, notes, and snippets.

@bakaburg1
Created July 18, 2019 20:38
Show Gist options
  • Save bakaburg1/b0a0a354930faa719767163618d321fc to your computer and use it in GitHub Desktop.
Save bakaburg1/b0a0a354930faa719767163618d321fc to your computer and use it in GitHub Desktop.
brms.mod.nprest.nb <<- brm(bf(N.prest ~ Mesi + (Mesi|Context), family = negbinomial()), data = TdA, prior = c(
set_prior('normal(0, 2.5)', class = 'Intercept'),
set_prior("cauchy(0, 2.5)", class = 'b')#,
#set_prior("normal(0, 2.5)", class = 'sd')
), init_r = 0.1, cores = 8, chains = 8, iter = 8000, warmup = 2000, control = list(max_treedepth = 15, adapt_delta = .90))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment