EC_model | R Documentation |
Transform environmental niche space into ecological niche space
EC_model(
x,
y,
D = 1,
A.matrix = NULL,
cor = F,
K = NULL,
method = c("composition", "densities"),
relative.niche = T,
C.matrix = NULL,
type = c("region", "global")
)
x |
NINA EN or BC model |
y |
Optional. NINA EN Model |
D |
Numeric value for independence of interactions |
A.matrix |
m by n matrix indicating the association coefficient (-1 to 1). m are species to be modeled as rows and n interactions as columns |
cor |
Logical |
K |
= Carrying capacity of each environmental cell |
method |
Method; abundances or composition |
relative.niche |
Logical |
C.matrix |
n by n matrix indicating the competition coefficient between interactions (0 to 1). |
type |
String indicating whether to perform at a region or a global level. Note that if models have not been estimated at a region level and it is selected it will produce an error |
Returns an error if filename
does not exist.
Data frame.
## Not run:
g1_EN = EN_model(env_data, occ_data1, cluster = "env", n.clus = 5, relative.niche = F, cor = F)
g2_EN = EN_model(env_data, occ_data2, cluster = g1_EN$clus, relative.niche = F, cor = F)
g2_BC <- BC_model(g2_EN, g1_EN, A.matrix = int_matrix, C.matrix = NULL, type = "region")
g2_EC <- EC_model(g2_BC, type = "region")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.