Model-based control of observer bias (Warton et al. 2013): recording effort enters the model as a further predictor, so that the model separates where the species is from where people recorded; for the map of the species, the model is then predicted with effort set to the same value everywhere. Unlike thinning or a biased background, no record is discarded, which matters most for small samples. The method follows the point-process view of presence-only models (Renner et al. 2015), of which Maxent is a special case (Renner & Warton 2013), and was compared with other corrections by Stolar & Nielsen (2015).
Arguments
- effort
Recording effort: a terra::SpatRaster (or path) whose first layer is effort per cell in any unit, e.g. the records of a target group from
gbif_effort_rasters(), or an accessibility surface (higher = more effort).- env
Predictor rasters: the grid the layers are aligned to.
- transform
"log1p"(default; effort counts are strongly skewed),"none"or"rank"(the empirical quantile of each cell, 0-1).- predict_at
"max"or"quantile": the value effort is held at for prediction.- q
The quantile for
predict_at = "quantile".- fill
Effort in cells of
envwhereefforthas no value (default 0: not recorded).- max_cor
Correlation with a predictor above which a warning is given.
- n_sample
Number of cells sampled for the quantiles and correlations (values are read only at these cells).
- seed
Seed for the sample.
Value
An object of class effort_layers: layers (a
terra::SpatRaster with effort, to fit, and effort_constant, to
predict), value (the constant, on the transformed scale),
correlation (Pearson correlation of effort with each predictor) and
settings.
Details
preENM prepares the two layers; the model is fitted in any software:
Fit the model with the predictors and
effort(the layer returned).Predict with the predictors and
effort_constantin place ofeffort(same name in the model: rename it toeffortbefore predicting).
Status, assumptions and limits. An established method (Warton et
al. 2013); preENM aligns the effort raster to the predictors,
transforms it and chooses the constant. The correction assumes that
effort acts on the recording of the species and not on its occurrence,
that the model can represent its effect (e.g. additively on the link
scale, without interactions with the environment), and that effort is
not strongly correlated with the predictors: if it is, the model cannot
tell the two apart, and part of the environmental response is removed
with the bias. The correlations are reported, and a warning is given
above max_cor (0.7, a preENM default, not from the literature).
Predicting at the maximum effort (as in Warton et al. 2013) extrapolates
beyond most of the data where effort is rarely that high; a high
quantile is the more conservative choice.
What to vary. predict_at (maximum, a high quantile), transform,
and compare the result with design-based corrections (thinning, a
target-group background) in bias_sensitivity().
References
Warton, D.I., Renner, I.W., Ramp, D. (2013) Model-based control of observer bias for the analysis of presence-only data in ecology. PLoS ONE 8, e79168. doi:10.1371/journal.pone.0079168
Stolar, J., Nielsen, S.E. (2015) Accounting for spatially biased sampling effort in presence-only species distribution modelling. Diversity and Distributions 21, 595-608. doi:10.1111/ddi.12279
Renner, I.W., Warton, D.I. (2013) Equivalence of MAXENT and Poisson point process models for species distribution modeling in ecology. Biometrics 69, 274-281. doi:10.1111/j.1541-0420.2012.01824.x
Renner, I.W., Elith, J., Baddeley, A., et al. (2015) Point process models for presence-only analysis. Methods in Ecology and Evolution 6, 366-379. doi:10.1111/2041-210X.12352
Examples
sim <- simulate_enm_data(seed = 1)
# an effort surface: recording falls off from the west
eff <- terra::init(sim$env[[1]], "x")
eff <- max(terra::values(eff), na.rm = TRUE) - eff
el <- effort_layers(eff, sim$env, predict_at = "quantile", q = 0.95)
#> Warning: Effort is correlated with env1 (|r| > 0.7): the model cannot separate recording from the environment there.
el
#> Recording effort as a covariate (transform log1p)
#>
#> IN SHORT
#> - Fit the model with the predictors and the layer `effort`; predict with
#> `effort_constant` (renamed to `effort`), which holds effort at its 95%
#> quantile (2.34) everywhere.
#> - Effort is correlated with env1 (r = -0.96): the model cannot fully
#> separate recording from the environment along these predictors, and part
#> of their effect may be removed with the bias.
#>
#> Correlation of effort with the predictors (4800 sampled cells):
#> layer r
#> env1 -0.96
#> env2 0.00
#>
#> Method: Warton et al. (2013). The limit of |r| = 0.7 is a preENM default, not from the literature.
names(el$layers)
#> [1] "effort" "effort_constant"
