View source: R/validation_functions.R
log_posterior_density | R Documentation |
Generate log posterior predictive density from a geostatistical surface onto point data
log_posterior_density(draws, validation_data, id_raster, na.rm = FALSE)
draws |
( |
validation_data |
(
|
id_raster |
(terra::SpatRaster) Raster showing the sample study area, created using build_id_raster. |
na.rm |
( |
Calculated across draws. Requires an ID raster to match each point observation to a set of draws. Assumes binomial data.
For examples, see vignette('model-comparison', package = 'mbg')
(numeric(1)
) Log predictive density of the validation data given the draw
estimates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.