eicm.matrix {eicm} | R Documentation |
Define a model object for a EICM model
Description
Constructs a EICM model object for prediction. The model object contains all coefficient matrices that may be needed for prediction.
Usually, you don't need to invoke this function directly, use as.eicm
instead.
Usage
eicm.matrix(env.coefs, sp.coefs = NULL, latent = NULL, options = NULL)
Arguments
env.coefs |
the environmental coefficient matrix: a species x variable matrix (including intercept). |
sp.coefs |
the species interaction coefficient matrix: a species x species matrix, with zero diagonal. |
latent |
the values for the latent variables in each sample: a sample x latent variable matrix. |
options |
options for the model fitting. |
Details
The EICM model is a list composed of three matrices plus the fitting options:
env
sp
samples
Value
A eicm.matrix
object that can be used for defining a model.
[Package eicm version 1.0.3 Index]