DI_compare {DImodels} | R Documentation |
Compare a Fitted Diversity-Interactions Model to the Reference Model
Description
This function fits the reference model internally and compares a DI model fit to it using anova
.
Usage
DI_compare(model, ...)
Arguments
model |
A DI model object. |
... |
Further arguments passed to |
Details
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).
Value
The function returns the reference model, a glm
model object.
Author(s)
Rafael A. Moral, John Connolly and Caroline Brophy
References
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.
See Also
Examples
## 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")