eicm.data {eicm} | R 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.
[Package eicm version 1.0.3 Index]