View source: R/generics_formula.R
| update.felm | R Documentation |
felm modelS3 method for update() that understands the |-separated formula syntax
used by felm(). R's built-in stats::update.formula() breaks on these
formulas because the | parts look like factor arithmetic. This method uses
the Formula::update.Formula() method which correctly handles multi-part
formulas.
The . placeholder works as usual:
. ~ . - keep the current response and RHS regressors.
The second | segment replaces (or keeps, if .) the fixed-effects.
The third | segment replaces (or keeps, if .) the cluster variables.
## S3 method for class 'felm'
update(object, formula. = . ~ ., vcov = NULL, ...)
object |
A fitted |
formula. |
Update formula; only the segments you want to change need to
differ from
|
vcov |
Optional new |
... |
Additional arguments forwarded to |
A refitted felm object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.