Learn R Programming

⚠️There's a newer version (1.3.1) of this package.Take me there.

MIAmaxent

Description

Training, selecting, and evaluating maximum entropy (Maxent) distribution models. This package provides tools for user-controlled transformation of explanatory variables, selection of variables by nested model comparison, and flexible model evaluation and projection. The methods implemented here are based on the strict maximum likelihood interpretation of maximum entropy modelling (Halvorsen, 2013, Halvorsen et al., 2015).

The predecessor to this package is the MIA Toolbox, which is described in detail in Mazzoni et al. (2015).

MIAmaxent is built around the highly popular MaxEnt distribution modeling program (Phillips et al., 2006), but provides an alternative methodology for training, selecting, and using models. The major advantage in this alternative methodology is greater user control -- in variable transformations, in variable selection, and in model output. Comparisons also suggest that this methodology results in simpler models with equally good predictive ability, and reduces the risk of overfitting (Halvorsen et al., 2016).

Installation

Install the release version from CRAN:

install.packages("MIAmaxent")

Or the development version from github

# install.packages('devtools')
# install.packages('R.rsp')
devtools::install_github("julienvollering/MIAmaxent", build_vignettes=TRUE)

System Requirements

The maximum entropy algorithm utilized in this package is provided by the MaxEnt Java program (Phillips et al., 2006). This software is freely available, but may not be distributed further. Therefore, you must download the MaxEnt program (v3.3.3k) from https://www.cs.princeton.edu/~schapire/maxent/, and place the 'maxent.jar' file in the 'java' folder of this package. This folder can be located by the following R command: system.file("java", package = "MIAmaxent").

You must have the Java Runtime Environment (JRE) installed on your computer for the MaxEnt program to function. You can check if you have Java installed, and download it if necessary, at http://java.com/download.

User Workflow

This diagram outlines a common workflow for users of this package. Functions are shown in red.

References

Halvorsen, R. (2013) A strict maximum likelihood explanation of MaxEnt, and some implications for distribution modelling. Sommerfeltia, 36, 1-132.

Halvorsen, R., Mazzoni, S., Bryn, A. & Bakkestuen, V. (2015) Opportunities for improved distribution modelling practice via a strict maximum likelihood interpretation of MaxEnt. Ecography, 38, 172-183.

Halvorsen, R., Mazzoni, S., Dirksen, J.W., Næsset, E., Gobakken, T. & Ohlson, M. (2016) How important are choice of model selection method and spatial autocorrelation of presence data for distribution modelling by MaxEnt? Ecological Modelling, 328, 108-118.

Mazzoni, S., Halvorsen, R. & Bakkestuen, V. (2015) MIAT: Modular R-wrappers for flexible implementation of MaxEnt distribution modelling. Ecological Informatics, 30, 215-221.

Phillips, S.J., Anderson, R.P. & Schapire, R.E. (2006) Maximum entropy modeling of species geographic distributions. Ecological Modelling, 190, 231-259.


Copy Link

Version

Install

install.packages('MIAmaxent')

Monthly Downloads

234

Version

0.4.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Julien Vollering

Last Published

February 14th, 2017

Functions in MIAmaxent (0.4.0)

deriveVars

Derive variables by transformation.
selectDVforEV

Select parsimonious sets of derived variables.
plotResp2

Plot marginal-effect model response.
release_questions

Reminders when using devtools::release
projectModel

Project model to data.
plotResp

Plot single-effect model response.
readData

Read in data object from files.
selectEV

Select parsimonious set of explanatory variables.
toydata_sp1po

Occurrence and environmental toy data.
testAUC

Calculate model AUC with test data.
toydata_selevs

Selected explanatory variables accompanied by selection trails, from toy
toydata_dvs

Derived variables and transformation functions, from toy data.
toydata_seldvs

Selected derived variables accompanied by selection trails, from toy data.
plotFOP

Plot Frequency of Observed Presence (FOP).
MIAmaxent

MIAmaxent: Maxent Distribution Model Selection.
modelfromlambdas

Maxent model from .lambdas file.