| bioclim_example | R Documentation |
A simulated dataset with the 19 WorldClim bioclimatic variables (https://www.worldclim.org/data/bioclim.html) measured at 100 geographic locations, with species richness as the response variable. Variables are organized into correlated blocks representing temperature (BIO1-BIO11) and precipitation (BIO12-BIO19).
bioclim_example
A data frame with 100 rows and 20 variables:
Integer. Number of species observed (response variable)
Numeric. Annual Mean Temperature
Numeric. Mean Diurnal Range
Numeric. Isothermality
Numeric. Temperature Seasonality
Numeric. Max Temperature of Warmest Month
Numeric. Min Temperature of Coldest Month
Numeric. Temperature Annual Range
Numeric. Mean Temperature of Wettest Quarter
Numeric. Mean Temperature of Driest Quarter
Numeric. Mean Temperature of Warmest Quarter
Numeric. Mean Temperature of Coldest Quarter
Numeric. Annual Precipitation
Numeric. Precipitation of Wettest Month
Numeric. Precipitation of Driest Month
Numeric. Precipitation Seasonality
Numeric. Precipitation of Wettest Quarter
Numeric. Precipitation of Driest Quarter
Numeric. Precipitation of Warmest Quarter
Numeric. Precipitation of Coldest Quarter
This dataset demonstrates a common problem in ecological modeling: bioclimatic predictors are highly correlated within groups (temperature variables BIO1-BIO11 are highly correlated; precipitation variables BIO12-BIO19 are moderately correlated), leading to multicollinearity issues. The species richness response depends on a subset of predictors.
Use case: Demonstrating corrPrune() and modelPrune() for reducing correlated
environmental predictors before fitting species distribution models.
Simulated data based on the 19 WorldClim bioclimatic variables
corrPrune(), modelPrune()
data(bioclim_example)
# The 19 WorldClim bioclimatic variables (https://www.worldclim.org/data/bioclim.html)
# Many are highly correlated, making them ideal for pruning
# Remove highly correlated variables
pruned <- corrPrune(bioclim_example[, -1], threshold = 0.7)
ncol(pruned) # Reduced from 19 to 12 variables
# Model-based pruning with VIF
model_data <- modelPrune(species_richness ~ .,
data = bioclim_example,
limit = 5)
attr(model_data, "selected_vars")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.