Operating System: macOS Mojave

brms version 2.10.0

I’m interested in running a mixed effects GAM in a Bayesian framework so that I can put in various priors for each covariate. Based on the help file and blogs I have found code that it seems to work up until when I start messing with priors. Basically I need to set lower and upper bounds for various covariates. I found on this site:https://github.com/paul-buerkner/brms/issues/86 how to do this but I still get an error. Below is my code for the model:

priors<-c(set_prior(“normal(26,2)”,class=“b”,ub=32,nlpar=‘etaTemp’),

set_prior(“normal(5,1)”,class=“b”,lb=3.5,nlpar=‘etaDO.2’),

set_prior(“normal(25,3)”,class=“b”,lb=17,nlpar=‘etaSal’))

testmod<-brm(bf(Binomial~s(etaDO.2)+s(etaSal)+s(etaTemp)+offset(Effort)+(1|Year)+(1|Month)),

data = dat, family = binomial(),nonlinear=list(etaTemp~0+Temp,etaDO.2~0+DO.2,etaSal~0+Sal),

prior=priors, cores = 1, seed = 17,iter = 4000, warmup = 1000, thin = 10) #can use control = list(adapt_delta = 0.99) to help model if need be

I tried to do the eta addition you used but I still get a warning:

Error: The following variables are missing in ‘data’:

‘etaDO.2’, ‘etaSal’, ‘etaTemp’–

Any help is greatly appreciated. Thanks!