model.matrix.fixest {fixest} | R Documentation |
femlm
modelThis function creates a design matrix of the linear part of a femlm
, feols
or feglm
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 'fixest' model.matrix(object, data, ...)
object |
A |
data |
If missing (default) then the original data is obtained by evaluating the |
... |
Not currently used. |
It returns a design matrix.
Laurent Berge
See also the main estimation functions femlm
, feols
or feglm
. formula.fixest
, update.fixest
, summary.fixest
, vcov.fixest
.
# simple estimation on iris data, clustering by "Species" res = femlm(Sepal.Length ~ Sepal.Width*Petal.Length + Petal.Width | Species, iris) head(model.matrix(res))