model.matrix.fixest: Design matrix of a femlm model
Description
This 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.
Usage
# S3 method for fixest
model.matrix(object, data, ...)
Arguments
object
A fixest object. Obtained using the functions femlm, feols or feglm.
data
If missing (default) then the original data is obtained by evaluating the call. Otherwise, it should be a data.frame.