Description Usage Arguments Details Value Author(s) See Also Examples

Run a rectilinear surface range envelop (equivalent to BIOCLIM) using the extreme percentiles as recommended by Nix or Busby. The SRE performs a simple analysis of within which range of each variable the data is recorded and renders predictions.

1 2 3 4 5 6 7 |

`Response` |
a vector (resp. a matrix/data.frame, a SpatialPointsDataFrame or a RasterLayer ) giving your species' presences and absences data |

`Explanatory` |
a matrix (resp. a data.frame, a SpatialPointsDataFrame or a RasterStack ) containing the environmental variables for the sites given in Response. It must have as many rows as there are elements in Response. |

`NewData` |
The data for which you want to render predictions with the sre. It must be a matrix (resp. a data.frame, a SpatialPointsDataFrame or a RasterStack ) of the same type as the one given in Explanatory and with precisely the same variable names. |

`Quant` |
the value defines the most extreme values for each variable not to be taken into account for determining the tolerance boundaries for the considered species. |

`return_extremcond` |
boolean, if TRUE a matrix containing extreme conditions supported is returned |

The more variables you put in, the more restrictive your model will be (if non-colinear variables).

This method is very much influenced by the data input, and more specifically by the extremes.

Where a linear model can discriminate the extreme values from the main tendency, the SRE considers it equal as any other data point which leads to notable changes in predictions.

Note that, as a consequence of its functioning, the predictions are directly given in binary, a site being either potentially suitable for all the variables, either out of bounds for at least one variable and therefore considered unsuitable.

The quants argument determines the threshold at which the data will be taken into account for calibration : the default of 0.05 induces that the 5% most extreme values will be avoided for each variable on each side of its distribution along the gradient. So it in fact takes 5% away at each end of the variables distribution, giving a total of 10% of data not considered.

A vector (resp. a RasterLayer ) of the same length as there are rows in NewData giving the prediction in binary (1=presence, 0=absence)

Wilfried Thuiller, Bruno Lafourcade, Damien Georges

`BIOMOD_Modeling`

,
`BIOMOD_ModelingOptions`

,
`BIOMOD_Projection`

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | ```
require(raster)
##' species occurrences
DataSpecies <-
read.csv(
system.file("external/species/mammals_table.csv", package = "biomod2"),
row.names = 1
)
head(DataSpecies)
##' the name of studied species
myRespName <- 'GuloGulo'
##' the presence/absences data for our species
myResp <- as.numeric(DataSpecies[,myRespName])
##' the XY coordinates of species data
myRespXY <- DataSpecies[which(myResp==1),c("X_WGS84","Y_WGS84")]
##' Environmental variables extracted from BIOCLIM (bio_3,
##' bio_4, bio_7, bio_11 & bio_12)
myExpl <-
raster::stack(
system.file("external/bioclim/current/bio3.grd", package = "biomod2"),
system.file("external/bioclim/current/bio4.grd", package = "biomod2"),
system.file("external/bioclim/current/bio7.grd", package = "biomod2"),
system.file("external/bioclim/current/bio11.grd", package = "biomod2"),
system.file("external/bioclim/current/bio12.grd", package = "biomod2")
)
myResp <-
raster::reclassify(
subset(myExpl, 1, drop = TRUE), c(-Inf, Inf, 0)
)
myResp[cellFromXY(myResp,myRespXY)] <- 1
##' Compute some SRE for several quantile values
sre.100 <-
sre(
Response = myResp,
Explanatory = myExpl,
NewData=myExpl,
Quant = 0
)
sre.095 <-
sre(
Response = myResp,
Explanatory = myExpl,
NewData=myExpl,
Quant = 0.025
)
sre.090 <-
sre(
Response = myResp,
Explanatory = myExpl,
NewData=myExpl,
Quant = 0.05
)
##' visualise results
par(mfrow=c(2,2),mar=c(6, 5, 5, 3))
plot(myResp, main = paste(myRespName, "original distrib."))
plot(sre.100, main="full data calibration")
plot(sre.095, main="95 %")
plot(sre.090, main="90 %")
``` |

```
Loading required package: sp
Loading required package: raster
Loading required package: parallel
Loading required package: reshape
Loading required package: ggplot2
biomod2 3.3-7.1 loaded.
Type browseVignettes(package='biomod2') to access directly biomod2 vignettes.
X_WGS84 Y_WGS84 ConnochaetesGnou GuloGulo PantheraOnca PteropusGiganteus
1 -94.5 82.00001 0 0 0 0
2 -91.5 82.00001 0 1 0 0
3 -88.5 82.00001 0 1 0 0
4 -85.5 82.00001 0 1 0 0
5 -82.5 82.00001 0 1 0 0
6 -79.5 82.00001 0 1 0 0
TenrecEcaudatus VulpesVulpes
1 0 0
2 0 0
3 0 0
4 0 0
5 0 0
6 0 0
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.