describe_model: Describe DI models

View source: R/DI.R

describe_modelR Documentation

Describe DI models

Description

This function accepts a DImodel (i.e., regression models fit using the DI or autoDI functions) object and returns a short text summary describing the model.

Usage

describe_model(model)

Arguments

model

A DI or autoDI regression model object.

Value

A short text describing the supplied DImodel object.

Author(s)

Rafael A. Moral, John Connolly, Rishabh Vishwakarma and Caroline Brophy

References

Kirwan L, J Connolly, JA Finn, C Brophy, A Lüscher, D Nyfeler and MT Sebastia (2009) Diversity-interaction modelling - estimating contributions of species identities and interactions to ecosystem function. Ecology, 90, 2032-2038.

See Also

DI autoDI

Examples


## Load the  data
   data(sim2)
## Fit model
   mod_FG <- DI(y = "response", FG = c("G", "G", "L", "L"), 
                prop = 3:6, data = sim2, DImodel = "FG")
## Describe model
   describe_model(mod_FG)


   mod_FULL <- DI(y = "response", estimate_theta = TRUE, 
                  prop = 3:6, data = sim2, DImodel = "FULL")
   describe_model(mod_FULL)

   mod_AV <- DI(y = "response", ID = c("ID1", "ID1", "ID2", "ID2"),
                estimate_theta = TRUE, 
                prop = 3:6, data = sim2, DImodel = "AV")
   describe_model(mod_AV)

DImodels documentation built on May 29, 2024, 7:05 a.m.