EC_model: ESTIMATE EC MODEL

View source: R/EC_model.R

EC_modelR Documentation

ESTIMATE EC MODEL

Description

Transform environmental niche space into ecological niche space

Usage

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")
)

Arguments

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

Details

Returns an error if filename does not exist.

Value

Data frame.

Examples

## 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)


agarciaEE/NINA documentation built on Jan. 9, 2025, 10:09 a.m.