
Predict at new sites from a fitted Bayesian hierarchical spatial model
Source:R/pilar7_bayesian_hierarchical.R
predict.edaphos_bhs.RdBayesian kriging: for each posterior draw of (beta, sigma^2, tau^2) we sample the latent GP at new locations conditional on
the observed latent field, then add iid noise. Returns posterior
mean and quantiles at each newdata row.
Arguments
- object
An
edaphos_bhsfit.- newdata
A data frame with covariates + coordinates matching the training schema.
- quantiles
Quantile levels to return. Default
c(0.025, 0.5, 0.975).- n_draws
Integer; how many posterior samples to use (capped by the actual number available in the fit). Default
500L.- ...
Unused.