formula.femlm {FENmlm} | R Documentation |
This function extracts the formula from a femlm
estimation. If the estimation was done with fixed-effects, they are added in the formula after a pipe (“|”). If the estimation was done with a non linear in parameters part, then this will be added in the formula in between I()
.
## S3 method for class 'femlm' formula(x, type = c("full", "linear", "NL"), ...)
x |
An object of class |
type |
A character scalar. Default is |
... |
Not currently used. |
It returns a formula.
Laurent Berge
femlm
, model.matrix.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) # formula with the cluster variable formula(res) # linear part without the cluster variable formula(res, "linear")