View source: R/POST_FATE.graphic_validationStatistics.R
POST_FATE.graphic_validationStatistics | R Documentation |
FATE
simulationThis script is designed to produce a graphical representation
of several statistics (sensitivity, specificity, TSS, AUC) for quality
assessment for one (or several) specific FATE
simulation year.
POST_FATE.graphic_validationStatistics(
name.simulation,
file.simulParam = NULL,
years,
mat.PFG.obs,
opt.ras_habitat = NULL,
opt.doPlot = TRUE,
opt.no_CPU = 1
)
name.simulation |
a |
file.simulParam |
default |
years |
an |
mat.PFG.obs |
a |
opt.ras_habitat |
(optional) default |
opt.doPlot |
(optional) default |
opt.no_CPU |
(optional) default |
This function allows to obtain, for a specific FATE
simulation and
a specific parameter file within this simulation, PFG validation
statistic values and one preanalytical graphic.
Observation records (presences and absences) are required for each PFG
within the mat.PFG.obs
object :
PFG
the concerned plant functional group
X, Y
the coordinates of each observation, matching with the
projection of the mask of name.simulation
obs
either 0
or 1
to indicate presence or
absence
For each PFG and each selected simulation year, raster maps are retrieved
from the results folder ABUND_REL_perPFG_allStrata
and lead to the
production of one table :
the value of several statistics to evaluate the predictive
quality of the model for each plant functional group
(sensitivity
,
specificity
,
auc
,
TSS = sensitivity + specificity - 1
)
If a raster mask for habitat has been provided, the values and
graphics will be also calculated per habitat.
It requires that the POST_FATE.relativeAbund
function has been run and that the folder ABUND_REL_perPFG_allStrata
exists.
This .csv
file can then be used by other functions :
to produce maps of PFG presence / absence from modelled
abundances
(see POST_FATE.binaryMaps
)
A list
containing one data.frame
object with the
following columns, and one ggplot2
object :
PFG
concerned plant functional group
AUC.sd
standard deviation of the AUC values
sensitivity.sd
standard deviation of the sensitivity values
specificity.sd
standard deviation of the specificity values
variable
name of the calculated statistic among
sensitivity
, specificity
, TSS
and AUC
value
value of the corresponding statistic
ggplot2
object, representing the values for each PFG
of these four validation statistics (sensitivity, specificity, TSS, AUC)
One ‘POST_FATE_TABLE_YEAR_[...].csv’ file is created :
containing the data.frame
detailed above
One ‘POST_FATE_[...].pdf’ file is created :
to assess the modeling quality of each PFG based on given observations within the studied area
Isabelle Boulangeat, Damien Georges, Maya Guéguen
POST_FATE.relativeAbund
,
cmx
,
sensitivity
,
specificity
,
auc
,
.getCutoff
,
POST_FATE.binaryMaps
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.