Number of Levels of a Factor or a "merMod" Model
ngrps(object, ...)
object |
an |
... |
currently ignored. |
The number of levels (of a factor) or vector of number of levels for each “grouping factor” of a
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"
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.