fitRF: Fit direct matching centrality using Random Forest

Description Usage Arguments Details Value Author(s)

View source: R/fitRF.R

Description

Fit direct matching centrality model using Random Forest

Usage

1

Arguments

data

an object of the class alienData

formula

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

...

Other parameters passed to randomForest.

Details

The Random Forest model is 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 unfold the adjacency matrix and uses it as the response variable. 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.

If there are NAs in the adjacency matrix, the function will omit these values in the estimation of the model.

Value

An object with a class alienFit and a class fitRF.

Author(s)

F. Guillaume Blanchet, Dominique Gravel, Steve Vissault


TheoreticalEcosystemEcology/alienR documentation built on Dec. 25, 2021, 5:59 p.m.