
Combine multiple spatial priors via weighted geometric mean
Source:R/spatial-combine.R
combine_priors.RdGiven a list of priors (each a data.table with rsg_code,
probability), pools them into a single distribution using a
weighted geometric mean and renormalises to sum to 1.
Arguments
- priors
A list of
data.tables with columnsrsg_codeandprobability.- weights
Optional non-negative numeric vector of length
length(priors). Defaults to equal weights. Will be renormalised to sum to 1.- epsilon
Smoothing floor for classes missing from a prior (default 1e-6). Must be > 0 – otherwise any class missing from a single prior is suppressed entirely.
Details
Geometric pooling has two desirable properties for soil-class priors:
externally Bayesian (the pooled posterior under any common likelihood matches what one would get by individual updates), and
zero-preserving: a class assigned probability 0 by any prior is suppressed in the pooled distribution. To avoid that, classes absent from a given prior are imputed with the smoothing constant
epsilon.