fitDMC: Fit direct matching centrality

Description Usage Arguments Details Value Author(s)

View source: R/fitDMC.R

Description

Fit direct matching centrality model

Usage

1
fitDMC(formula, data, binary = TRUE, type = NULL, family = NULL, ...)

Arguments

formula

A one-sided formula specifying how the different traits from both sets of species should be used to estimate species interactions.

data

an object of the class alienData

binary

Logical. Whether the adjacency matrix is binary or not. Default is TRUE.

type

Method to use to estimate the model. Either "randomForest" (randomForest) or "glm" (glm).

family

The family of the response variable. See family, or the choices available. This is argument is only active when type = "glm".

...

Other parameters passed to either randomForest or glm.

Details

The direct matching centrality models are designed to be used on bipartite network where traits are available for both sets of species interacting in the network. It should not be used otherwise.

This function builds the adjacency matrix, unfold it and uses it as the response variables. As explanatory variables, the traits for each sets of species are repeated to match the length of the unfolded adjacency matrix but also the position.

Value

An object of class alienFit.

Author(s)

Dominique Gravel, Steve Vissault, F. Guillaume Blanchet


TheoreticalEcosystemEcology/alien documentation built on Feb. 21, 2020, 7:12 p.m.