# simple estimation on iris data, clustering by "Species"
res = femlm(Sepal.Length ~ Sepal.Width + Petal.Length +
Petal.Width | Species, iris)
# formula with the cluster variable
formula(res)
# linear part without the cluster variable
formula(res, "linear")
Run the code above in your browser using DataLab