fixed_effects function

Recover the estimates of the fixed effects after fitting (G)LMs

Recover the estimates of the fixed effects after fitting (G)LMs

The system might not have a unique solution since we do not take collinearity into account. If the solution is not unique, an estimable function has to be applied to our solution to get meaningful estimates of the fixed effects.

fixed_effects(object = NULL, control = NULL)

Arguments

  • object: an object of class "feglm".
  • control: a list of control parameters. If NULL, the default control parameters are used.

Returns

A named list containing named vectors of estimated fixed effects.

Examples

# check the feglm examples for the details about clustered standard errors # subset trade flows to avoid fitting time warnings during check set.seed(123) trade_2006 <- trade_panel[trade_panel$year == 2006, ] trade_2006 <- trade_2006[sample(nrow(trade_2006), 500), ] mod <- fepoisson( trade ~ log_dist + lang + cntg + clny | exp_year + imp_year, trade_2006 ) fixed_effects(mod)

References

Stammann, A. (2018). "Fast and Feasible Estimation of Generalized Linear Models with High-Dimensional k-way Fixed Effects". ArXiv e-prints.

Gaure, S. (n. d.). "Multicollinearity, identification, and estimable functions". Unpublished.

See Also

felm, feglm

  • Maintainer: Mauricio Vargas Sepulveda
  • License: Apache License (>= 2)
  • Last published: 2025-03-26