anova: anova tests in GAMLj results

anova.gamljR Documentation

anova tests in GAMLj results

Description

This is a convenience function to extract the ANOVA table (omnibus tests) from a GAMLj model. If no option is passed, extracts the ANOVA tests table already in the model results (if any). If two GAMLj models are provided, a model comparison is produces. Any option accepted by gamlj model can be passed. are returned.

Usage

## S3 method for class 'gamlj'
anova(object, object2, ...)

Arguments

object

a gamlj results object of the class 'gamlj'

object2

a gamlj results object of the class 'gamlj' representing the nested model. Overiddes nested_terms. It can be passed also as a a right-hand side formula specifying terms of the nested model.

...

all options accepted by a gamlj model function.

Value

a list of tables of class 'ResultsElement'

Author(s)

Marcello Gallucci

Examples

data(fivegroups)
fivegroups$Group<-factor(fivegroups$Group)
gmod<-GAMLj3::gamlj_lm(
  formula = Score ~Group,
  data = fivegroups)

anova(gmod)

gamlj/gamlj documentation built on April 17, 2024, 7:51 p.m.