Hi Chris,
1)
there are two aspects here that are often confused; coherently spatially changing mean value, and spatial correlation; with just one realisation of the field, one can't really tell those apart, and one has to use ones modelling choices to get the kind of information one is interested in. Sometimes, it's enough to include the covariate in the predictor (i.e. controlling the mean value), but if one truly needs it to control the dependency structure (i.e. to _decouple_ the values at high and low elevation) one needs to enter it as covariates in the dependence structure. In your case, you likely need both.
The inla.sdpe2.matern() model constructor allows you to include covariates evaluated at the mesh nodes, e.g. if elevation is available as a terra raster:
library(inlabru)
elev_on_mesh <- eval_spatial(elevation, mesh$loc)
spde <- inla.spde2.matern(mesh, alpha = 2, B.tau = cbind(0, 1, elev_on_mesh, 0, 0), B.kappa = cbind(0, 0, 0, 1, elev_on_mesh))
This lets both tau and kappa vary across space. Also see
https://www.jstatsoft.org/article/view/v063i19 for more details on the parameterisation, and how to reparameterise the model to be more interpretable, in terms of log(
std.dev.) and log(range) instead of the less directly interpretable tau and kappa parameters.
The above is just a simple example of how to write the code. In your problem, it's more likely that you want kappa to depend on the magnitude of the _slope_ of the elevation field, so that a large slope allows it to locally have a short correlation length, which has the effect of decoupling areas of low and high elevation. (this would be a "soft" version of the "barrier" model, which is discussed elsewhere)
2) There is support for full 3D tetrahedralisations (fmesher::fm_mesh_3d()), but that is unlikely to be helpful in your case, and is more suited for e.g. 3D seismology etc.
3) If the covariates are highly correlated, then you'll get confounding in the estimates, yes. There's no universal solution to that.
You will be ba able to see in the estimates if it is a problem, e.g. if the effect of each individual component has a large posterior predictive standard deviation, but the combined predictions have reasonable std.ev.; that would mean that the estimates are negatively correlation, which is what one would expect in a confounded situation. (This often happens between the intercept and spde components as well; in those cases, just focus on their combined effect instead of attempting to interpret the individual effects).
Finn