Skip to contents

Anova for lm2 objects, returns a table with pairwise comparisons between models or, if only one model was supplied, with the null model.

Usage

# S3 method for lm2
anova(object, ...)

Arguments

object

an object of class "lm2"

...

further objects of class "lm2"

Value

an anova data frame

See also

Examples

lm2euc <- lm2(depV1+depV2~indepV1+indepV2, NakayaData, transformation = 'Euclidean')
lm2aff <- lm2(depV1+depV2~indepV1+indepV2, NakayaData, transformation = 'Affine')
anova(lm2euc, lm2aff)
#> Bidimensional regression:
#>                          dAIC df1 df2      F   p.value    
#> euclidean vs. affine -13.2902   2  32 9.2189 0.0006891 ***
#> ---
#> Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1