…or even simpler:
Comp=~mycovar(covar,model=“linear”)
Like1=like(y1~mycovar, data=data.frame(y1,covar=covar1),…)
Like2=like(y2~mycovar, data=data.frame(y2,covar=covar2),…)
But some of these version are like copy with fixed=TRUE; that combination is really never needed with inlabru, as the above technique, and my previous reply, does exactly that.
For fixed=FALSE copies, it depends on how what type of control one needs over the prior, etc.
For spatial covariates and point process, one can need some eval_spatial() calls to evaluate the covariate(s) “on the fly”.
Finn
> On 19 Jul 2024, at 16:32, Finn Lindgren <
finn.l...@gmail.com> wrote:
>
> For a completely shared coefficient, you can use