update.feglm: Update a fitted 'feglm' model

View source: R/generics_formula.R

update.feglmR Documentation

Update a fitted feglm model

Description

S3 method for update() that understands the |-separated formula syntax used by feglm(). Uses Formula::update.Formula() for proper handling of multi-part formulas. Identical semantics to update.felm().

Usage

## S3 method for class 'feglm'
update(object, formula. = . ~ ., vcov = NULL, family = NULL, ...)

Arguments

object

A fitted feglm object.

formula.

Update formula; only the segments you want to change need to differ from .. Examples:

  • . ~ . | country + year - change FE, keep regressors.

  • . ~ . | . | ctry1 + ctry2 - keep FE, change cluster.

  • . ~ . - bothin | year - drop a regressor, keep FE.

vcov

Optional new vcov value (e.g. "cluster"). If omitted the original value is reused.

family

Optional new family (e.g. binomial()). If omitted the original family is reused.

...

Additional arguments forwarded to felm().

Value

A refitted feglm object.


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