log_posterior_density {mbg} | R Documentation |
Generate log posterior predictive density from a geostatistical surface onto point data
Description
Generate log posterior predictive density from a geostatistical surface onto point data
Usage
log_posterior_density(draws, validation_data, id_raster, na.rm = FALSE)
Arguments
draws |
( |
validation_data |
(
|
id_raster |
(terra::SpatRaster) Raster showing the sample study area, created using build_id_raster. |
na.rm |
( |
Details
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')
Value
(numeric(1)
) Log predictive density of the validation data given the draw
estimates.