posthoc: Post-hoc test on GAMLj results

View source: R/rinterface.R

posthocR Documentation

Post-hoc test on GAMLj results

Description

This is a convenience function to re-estimates a GAMLj model adding posthoc tests. If no option is passed, extracts the post-hoc tests tables already in the model results (if any). If new post-hoc are defined, the post-hoc tests tables are returned.

Usage

posthoc(object, ...)

## S3 method for class 'gamlj'
posthoc(object, formula = NULL, ...)

Arguments

object

a gamlj results object of the class 'gamlj'

...

all options accepted by a gamlj model function. Relevant for new tests are 'post_hoc' (a list of list of terms), 'adjust', a list of correction to apply: one or more of none, bonf, holm, scheffe or sidak.

formula

a right hand side formula specifying the factors or factors combinations to test, of the form '~x+z', '~x:z' or '~x*z'. It has prevalence on other options defining a post-hoc test via character options.

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)

posthoc(gmod,formula =~Group)

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