Analysis Of Deviance for gllvm
Computes an analysis of deviance table for two generalized linear latent variable model fits.
## S3 method for class 'gllvm' anova(object, ..., which = "multi", method = "holm")
object |
an object of class 'gllvm'. |
... |
one or more objects of class 'gllvm' |
which |
either "multi" or "uni". If "uni", performs anova for each species separately. |
method |
method used to adjust p-values for multiple testing when |
Computes likelihood-ratio test for two or more gllvm models. Test results makes sense only for nested models. Notice also that this test is not designed for testing models which have degrees of freedom difference larger than 20. For such models the P-value should be treated as very approximate.
Jenni Niku, Bert van der Veen
## Load a dataset from the mvabund package data(antTraits) y <- antTraits$abund X <- antTraits$env TR <- antTraits$traits # Fit gllvm model fit1 <- gllvm(y, X, TR, formula = ~ Bare.ground + Shrub.cover, family = poisson()) fit2 <- gllvm(y, X, TR, formula = ~ Bare.ground + Shrub.cover + (Bare.ground + Shrub.cover) : Webers.length, family = poisson()) # Test if the model with fourth corner interaction terms is significantly # better using likelihood-ratio test: anova(fit1, fit2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.