eicm.data: Define a data object for a EICM model

View source: R/eicm-options.r

eicm.dataR Documentation

Define a data object for a EICM model

Description

Constructs a EICM data object for prediction. The data object contains all data matrices that may be needed for prediction. Usually, you don't need to invoke this function directly, use as.eicm instead.

Usage

eicm.data(occurrences = NULL, env = NULL, traits = NULL, intercept = TRUE)

Arguments

occurrences

a binary (0/1) sample x species matrix, possibly including NAs.

env

an optional sample x environmental variable matrix, for the known environmental predictors.

traits

an optional species x trait matrix. Currently, it is only used for excluding species interactions a priori.

intercept

logical specifying whether to add a column for the species-level intercepts.

Value

A eicm.data object that can be used for defining a model.


eicm documentation built on May 31, 2023, 5:20 p.m.