Calculate random effect structure Calculates number of random effects, number of parameters, block size and number of blocks. Mostly for internal use.
Calculate random effect structure Calculates number of random effects, number of parameters, block size and number of blocks. Mostly for internal use.
getReStruc(reTrms, ss = NULL)
reTrms |
random-effects terms list |
ss |
a character string indicating a valid covariance structure.
Must be one of |
a list
blockNumTheta |
number of variance covariance parameters per term |
blockSize |
size (dimension) of one block |
blockReps |
number of times the blocks are repeated (levels) |
covCode |
structure code |
data(sleepstudy, package="lme4") rt <- lme4::lFormula(Reaction~Days+(1|Subject)+(0+Days|Subject), sleepstudy)$reTrms rt2 <- lme4::lFormula(Reaction~Days+(Days|Subject), sleepstudy)$reTrms getReStruc(rt)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.