update.felm_formula: Update a 'felm_formula' object

View source: R/generics_formula.R

update.felm_formulaR Documentation

Update a felm_formula object

Description

S3 method for update() on felm_formula objects. Uses Formula::update.Formula() to properly handle multi-part formulas with |.

The . placeholder behaves as in stats::update.formula():

  • . ~ . - keep current response and RHS unchanged.

  • Second | segment - replaces (or keeps with .) the fixed effects.

  • Third | segment - replaces (or keeps with .) the cluster variables.

Usage

## S3 method for class 'felm_formula'
update(object, formula., ...)

Arguments

object

A felm_formula object.

formula.

Update specification, e.g. . ~ . | . | ctry1 + ctry2.

...

Ignored.

Value

A new felm_formula object.


capybara documentation built on June 15, 2026, 9:10 a.m.