model.matrix.femlm {FENmlm} | R Documentation |
This function creates a design matrix of the linear part of a femlm
estimation. Note that it is only the linear part and the cluster variables (which can be considered as factors) are excluded from the matrix.
## S3 method for class 'femlm' model.matrix(object, data, ...)
object |
An object of class |
data |
If missing (default) then the original data is obtained by evaluating the |
... |
Not currently used. |
It returns a design matrix.
Laurent Berge
femlm
, formula.femlm
, update.femlm
, summary.femlm
, vcov.femlm
.
# simple estimation on iris data, clustering by "Species" res = femlm(Sepal.Length ~ Sepal.Width*Petal.Length + Petal.Width | Species, iris) head(model.matrix(res))