bm_ModelAnalysis: Analyze the residuals of the single models

View source: R/bm_ModelAnalysis.R

bm_ModelAnalysisR Documentation

Analyze the residuals of the single models

Description

This function return differents graphs to help analyse the single models.

Usage

bm_ModelAnalysis(
  bm.mod,
  models.chosen = "all",
  do.plot = TRUE,
  color.by = "full.name"
)

Arguments

bm.mod

a BIOMOD.models.out

models.chosen

a vector containing model names to be kept, must be either all or a sub-selection of model names that can be obtained with the get_built_models function

do.plot

a logical, print the plots or not

color.by

a character between "full.name", "species", "PA", "RUN" or "algo"

Details

All the plots will be made for the models, independently to the different models assumptions. It is up to the user to interpret the graphs in the light of the model assumptions.

Value

  1. a plot residuals ~ observations to detect outliers

  2. a histogramm of the residuals

  3. a qqplot of the residuals

  4. plot residuals ~ fitted

  5. a plot of the different Rsquared available (Rsquared, Rsquared_aj, Psquared)

Author(s)

Hélène Blancheteau


biomodhub/biomod2 documentation built on March 29, 2025, 1:14 p.m.