DI_compare | R Documentation |
This function fits the reference model internally and compares a DI model fit to it using anova
.
DI_compare(model, ...)
model |
A DI model object. |
... |
Further arguments passed to |
This function takes a DI model object as input, fits the reference model internally and compares the two models using anova
. The reference model includes an additive effect of community (each unique combination of species proportions) in the linear predictor. For more details on the reference model, see Connolly et al. (2013).
The function returns the reference model, a glm
model object.
Rafael A. Moral, John Connolly and Caroline Brophy
Connolly J, T Bell, T Bolger, C Brophy, T Carnus, JA Finn, L Kirwan, F Isbell, J Levine, A Lüscher, V Picasso, C Roscher, MT Sebastia, M Suter and A Weigelt (2013) An improved model to predict the effects of changing biodiversity levels on ecosystem function. Journal of Ecology, 101, 344-355.
DI
autoDI
## Load the sim1 data
data(sim1)
## Fit the FULL model
m1 <- DI(y = "response", block = "block", prop = 3:6,
DImodel = "FULL", data = sim1)
## Compare with the reference model
DI_compare(m1, test = "F")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.