Online tutorial for this function
The conversion of environmental suitability into presence - absence used to
be
performed by selecting a threshold above which presence always occurs,
and never below. However, this approach may is unrealistic because
species may sometime be present in areas with a low probability of
occurrence,
or be absent from areas with a high probability of occurrence. In addition,
when using a threshold you erase the previously generated response shapes:
it all becomes threshold. Thus, this threshold approach should be avoided.
A more
realistic conversion consists in converting environmental suitability into
presence -
absence with a probability function (see references). Such a probability
conversion can be performed with two different methods here:
Using a logistic transformation of environmental suitability
(see logisticFun
). A logistic function on the other hand, will
ensure that the simulated probability is within the 0-1 range and allow easy
control of species prevalence. However, the
logistic function will also flatten out the relationship at the extreme
suitability values, and narrow or broaden the intermediate probability values
depending on the slope of the logistic curve
Using a linear transformation of environmental suitability. A linear
transformation will preserve the shape of the originally simulated
occurrence-environment relationships, uniformly increasing or decreasing the
probabilities of occurrence across the landscape.
--- note ---
If the Virtual Species study aims at comparing simulated and predicted
probability values, it is important to recover the correct simulated
probability instead of directly using the initial suitability function.
Therefore, the function stores the probability of occurrence in the
output list, under the object probability.of.occurrence
.
The initial suitability function (before logistic or linear conversion)
will still be stored in the output list as suitab.raster
.
--------------------------------------------------------------------------
PROBABILISTIC CONVERSION - LOGISTIC METHOD
To perform the logistic transformation of environmental suitability
you have to define two of the
three following parameters:
beta
: the 'threshold' of the logistic function (i.e. the
inflexion point. It should normaly be in the range of values of your
environmental suitability.)
alpha
: the slope of the logistic function. It should generally
be in value equal to something like 1/20 or 1/10 of your environmental
suitability range
species.prevalence
: the proportion of sites in which the species
occur
If you provide beta
and alpha
, the species.prevalence
is calculated immediately calculated after conversion into presence-absence.
On the other hand, if you provide species.prevalence
and either
beta
or alpha
, the function will try to determine alpha
(if you provided beta
) or beta
(if you provided alpha
).
The relationship between species prevalence, alpha and beta is dependent
on the available range of environmental conditions (see Meynard and Kaplan,
2011 and especially the Supporting Information). As a consequence, the
desired species prevalence may not be available for the defined alpha
or beta
. In these conditions, the function will retain the
alpha
or
beta
which provides the closest prevalence to your
species.prevalence
,
but you may also provide another value of alpha
or beta
to
obtain
a closer prevalence.
--------------------------------------------------------------------------
PROBABILISTIC CONVERSION - LINEAR METHOD
To perform the linear transformation of environmental suitability
you have to define *one* of the following:
nothing - in which case your input environmental suitability will be
used as the probability of occurrence for the Bernoulli trial (it is
equivalent to defining a slope a
of 1 and intercept b
of 0.)
the coefficients of the linear regression: slope a
and
intercept b
. The transformed environmental suitability will
be used as the probability of occurrence for the Bernoulli trial.
species.prevalence
: the proportion of sites in which the
species occur. In this case, the function will try to find coefficients
of a linear regression which results in the requested
species.prevalence
(see below).
Method used to find coefficients of a linear regression which results in the
requested species.prevalence
:
The simplest linear transformation of habitat suitability would
be to just multiply the raw suitability by a constant. For example, if the
raw average suitability in the area is 0.04, it means an expected prevalence
of 0.40. To to go from this expected prevalence of 0.04 to an expected
prevalence of 0.4, we can just multiply the raw suitability by 10. It is the
default choice, unless it results in probabilities superior to 1 or raw
suitability have values below 0, in which case the function proceeds to
method 2.
If it does not work, then we look at the line that passes through
(min suitability, 0) and (mean suitability, desired prevalence). For this
line, we only need to ensure that the maximum probability of occurence is
lower than 1. Otherwise, the function proceeds to method 3.
If method 2 fails, then we test the line going through (mean
suitability, desired prevalence) and (max suitability, 1). If the minimum
probability resulting from this line is greater than 0, then this method is
correct.
One of these 3 lines should always work. In fact, one of the last two has to
work, and it does not hurt to try the first one which is simpler.
--------------------------------------------------------------------------
In all cases, the species.prevalence
indicated in the output is the
prevalence measured on the output presence-absence map.