DesignM
function creates the design matrix for fixed effects.
DesignM(data, fe.cont, fe.disc, ref.group)
data | The data frame. |
---|---|
fe.cont | Vector of continuous variables. |
fe.disc | Vector of discrete/categorical variables. |
ref.group | Define the reference group for each discrete variable. |
A matrix.