posthoc | R Documentation |
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.
posthoc(object, ...)
## S3 method for class 'gamlj'
posthoc(object, formula = NULL, ...)
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 |
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. |
a list of tables of class 'ResultsElement'
Marcello Gallucci
data(fivegroups)
fivegroups$Group<-factor(fivegroups$Group)
gmod<-GAMLj3::gamlj_lm(
formula = Score ~Group,
data = fivegroups)
posthoc(gmod,formula =~Group)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.