Hello,
I have a Gaussian Process model, and I would like to include the output of this model as a linear factor in a GLM. As part of my workflow, I have already defined the basic format of the GLM as a `nimbleCode`, and I have defined the GP as a `nimbleCode` as well. It would be super nice if there were some way to create a new `nimbleCode` that does something vaguely like:
```
covariates <- stack(matrixOfCovariates, myGPModel["s"])
myGLMModel["lambda"] <- rowSum(covariates)
```
Basically, the desire is to not have to copy-pasta my code into a huge wall of a model, when the GLM and the GP are already defined, and the tie between them is this single additive bit.
Is there any way to combine multiple individual models into a "large" model?
Cheers,
-Scott!