On Fri, 2025-06-13 at 10:38 +1000, Scott Foster wrote:
> Thanks!
>
> This is indeed what I wanted. It seems to work well.
>
> I'm not sure why the two codes produce different results though. The first
> code, which is not-quite-right, copies only the data for one of the two
> likelihoods (the one that has to be altered). The second code, which works,
> copies all the data from both likelihood models. It seems to my eyes, that the
> model should be the same, yet different results? What am I missing?
I guess this boils down to writing out the details in a simple low-dimensional
case...
>
> Apart from understanding, another reason for me asking is that my 'real' data
> is quite numerous (possibly 10,000s of observations in a geostats model) and I
> wonder if it is necessary to repeat all the data, or just the relatively small
> section that requires this adjustment. However, I am happy enough with the
> computational effort if the model is the correct one.
10,000's are ok. the 'copy' operator can only copy the whole model, but the
added cost is very small, since if w is a copy of x, then it just say that
w[i] - x[i] = small noise
so it does not add much complexity in the graph
best
H
--
Håvard Rue
he...@r-inla.org