## Gets the design matrix for a simple analysis
data(sleep)
bf = anovaBF(extra ~ group + ID, data = sleep, whichRandom="ID", progress=FALSE)
X = model.matrix(bf)
## Show dimensions of X (should be 20 by 12)
dim(X)
Run the code above in your browser using DataLab