
Last chance! 50% off unlimited learning
Sale ends in
factor
or a set of
factors, currently e.g., for each of the grouping factors of
lmer()
, glmer()
, etc.ngrps(object, …)
R
object, see Details.
, i.e., the result of lmer()
etc,
and factor
objects.ngrps(factor(seq(1,10,2)))
ngrps(lmer(Reaction ~ 1|Subject, sleepstudy))
## A named vector if there's more than one grouping factor :
ngrps(lmer(strength ~ (1|batch/cask), Pastes))
## cask:batch batch
## 30 10
methods(ngrps) # -> "factor" and "merMod"
Run the code above in your browser using DataLab