Dear Finn,
thank you for your answer. It helped a lot.
Yes I had a look at the Ingebrigtsen paper before, but unfortunately I do not really know how to implement
log(tau(u))= theta_1^(tau)+ h(u)*theta_h^(tau) and log(kappa(u))= theta_1^(kappa)+ h(u)*theta_h^(kappa) correctly.
I tried it though, where n=48 are my measurement stations, stored in est.data.
theta_1.tau<-rnorm(n,mean= 4, sd=0.1)
theta_1.kappa<-rnorm(n, -4, 0.1)
theta_elev.tau<-rnorm(n,0,1)
theta_elev.kappa<-rnorm(n,0,1)
spde.non.stat.elev<-inla.spde2.matern(mesh, # 1243 mesh vertices
B.tau=cbind(0, theta_1.tau,0, est.data$Elevation*theta_elev.tau),
B.kappa=cbind(0,0, theta_1.kappa, est.data$Elevation*theta_elev.kappa),
theta.prior.mean=rep(0,3),
theta.prior.prec=rep(1,3))
However I get the following error " B matrix has 48 rows but should have 1 or 1243 ".
Do you know how to fix that problem?
Thanks in advance already.
All the best,
Corinna