I want to define a numerical argument to a brms function that gets plugged into a brm model fitting. I want to define it first and then plug in the name of this thing into the function. But it seems to be keeping it as a string/name and not the number itself:
First computing reasonable priors in a literate and transparent way, which I discuss in the Quarto:
prior_click <- c(prior(normal(-prior_intercept_click, se_prior_click), class = Intercept),
+ prior(normal(0, se_prior_slope_click), class = b))
prior_click
But it uses the names and not the values:
prior class coef group resp dpar nlpar lb ub source
normal(-prior_intercept_click, se_prior_click) Intercept <NA> <NA> user
normal(0, se_prior_slope_click) b <NA> <NA> user
> prior_click
prior class coef
normal(-3.54715129428524,0.924770530049556) Intercept
normal(0,1.24925459470262) b
group resp dpar nlpar lb ub source
<NA> <NA> user
<NA> <NA> user