gANOVA.Rd
This function provide a small modification of the lme4
function link{lmer}
in order to estimated mixed models with the same variance for orthonormal contrasts. Check formula parameter for details.
gANOVA( formula, data = NULL, REML = TRUE, control = lmerControl(), start = NULL, verbose = 0L, subset, weights, na.action, offset, contrasts = NULL, devFunOnly = FALSE, ... )
formula | a |
---|---|
data | a data frame. See |
REML | a logical that indicate which criterion to optimize. See |
control | Some parameters. See lmerControl or |
start | starting values for the paramters. See |
verbose | See |
subset | an expression to selecte a subset of the data. See |
weights | an optional vector of weights. See |
na.action | a function that handle |
offset | specify a priori component in the predictor. See |
contrasts | a list of contrasts. See |
devFunOnly | a logical set by default to |
... | addition arguments. See |
summary
and anova
method are copied from the lmerTest
package in order to have p-values.
Given 2 factors, f
and g
, and a grouping variable id
, the formula (1|id) + (1|id:f)+ (1|id:g)+ (1|id:f:g)
can be reduced to (1|id|f*g)
. However the grouping variable (herer id
) should be written as one variable.
lmer
.
Other estimation:
refit.lmerModgANOVA()