buildFormula: Builds SDM formulae

View source: R/buildFormula.R

buildFormulaR Documentation

Builds SDM formulae

Description

Builds the formula of both the abiotic and biotic terms to fit a single species SDM based on the input parameters. The function is called inside the SDMfit function

Usage

buildFormula(
  form.init,
  species,
  sp.formula = NULL,
  sp.partition = NULL,
  useBRMS
)

Arguments

form.init

The abiotic part of the formula

species

The preys (or predators) of the focal species

sp.formula

optional parameter for composite variables. See ?trophicSDM

sp.partition

optional parameter to specify groups of species for composite variables. See ?trophicSDM

useBRMS

whether brms is used (TRUE if penal = "coeff.signs" and method = "stan_glm).

Author(s)

Giovanni Poggiato and Jérémy Andréoletti


webSDM documentation built on June 24, 2024, 5:13 p.m.