Skip to contents

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.

Usage

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.

Value

A named list containing named vectors of estimated fixed effects.

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

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)
#> $exp_year
#>          exp_year
#> ARG2006 12.354182
#> AUS2006 12.295876
#> AUT2006 11.460266
#> BEL2006 12.602948
#> BGR2006  9.955044
#> BOL2006  7.997188
#> BRA2006 13.196375
#> CAN2006 13.219192
#> CHE2006 11.505644
#> CHL2006 12.118194
#> CHN2006 14.781514
#> CMR2006  8.533989
#> COL2006  8.307515
#> CRI2006  9.084916
#> CYP2006  7.888456
#> DEU2006 14.018373
#> DNK2006 11.766127
#> ECU2006  7.567530
#> EGY2006 10.588037
#> ESP2006 13.144661
#> FIN2006 11.663082
#> FRA2006 13.519189
#> GBR2006 13.547806
#> GRC2006 11.192225
#> HKG2006 10.781023
#> HUN2006 10.610410
#> IDN2006 12.048152
#> IND2006 11.650353
#> IRL2006 11.558309
#> IRN2006 10.332924
#> ISL2006  6.950035
#> ISR2006 12.161183
#> ITA2006 13.301575
#> JOR2006  6.006871
#> JPN2006 14.467505
#> KEN2006  6.387648
#> KOR2006 13.615640
#> KWT2006  9.467537
#> LKA2006  9.189932
#> MAC2006  7.106972
#> MAR2006  9.149055
#> MEX2006 12.325676
#> MLT2006  9.158931
#> MMR2006  7.133603
#> MUS2006  7.811748
#> MWI2006  6.899048
#> MYS2006 13.577018
#> NER2006  5.288811
#> NGA2006  8.405646
#> NLD2006 12.834445
#> NOR2006 10.587912
#> NPL2006  6.528165
#> PAN2006  9.847074
#> PHL2006 10.909150
#> POL2006 11.357382
#> PRT2006 11.181330
#> QAT2006  9.495034
#> ROM2006 10.693692
#> SEN2006  5.642460
#> SGP2006 12.716663
#> SWE2006 12.719737
#> THA2006 12.601664
#> TTO2006  9.258669
#> TUN2006  9.482837
#> TUR2006 12.491023
#> TZA2006 10.222759
#> URY2006  8.530869
#> USA2006 14.423551
#> ZAF2006 11.712998
#> 
#> $imp_year
#>          imp_year
#> ARG2006 10.432677
#> AUS2006 12.700191
#> AUT2006 11.277270
#> BEL2006 11.758012
#> BGR2006  9.908203
#> BOL2006  9.278039
#> BRA2006 12.226227
#> CAN2006 12.329689
#> CHE2006 11.413846
#> CHL2006 11.203143
#> CHN2006 14.415853
#> CMR2006  7.649053
#> COL2006 10.487590
#> CRI2006 10.650108
#> CYP2006 10.272275
#> DEU2006 13.919030
#> DNK2006 10.842695
#> ECU2006  9.381805
#> EGY2006 10.124340
#> ESP2006 12.447923
#> FIN2006 11.263898
#> FRA2006 12.653085
#> GBR2006 12.900730
#> GRC2006 10.393138
#> HKG2006 11.967596
#> HUN2006 10.986356
#> IDN2006 11.693021
#> IND2006 12.641453
#> IRL2006 10.587776
#> IRN2006 10.445187
#> ISL2006  8.459614
#> ISR2006 10.713560
#> ITA2006 12.691227
#> JOR2006  8.975213
#> JPN2006 12.895987
#> KEN2006  9.408612
#> KOR2006 12.132448
#> KWT2006 10.130913
#> LKA2006 10.244343
#> MAC2006  7.699025
#> MAR2006 10.081006
#> MEX2006 12.822108
#> MLT2006 10.152227
#> MMR2006  6.223690
#> MUS2006  9.377968
#> MWI2006  6.663842
#> MYS2006  9.931781
#> NER2006  7.332296
#> NGA2006  9.868131
#> NLD2006 12.109846
#> NOR2006 11.260315
#> NPL2006  6.032511
#> PAN2006  9.577379
#> PHL2006  8.321253
#> POL2006 11.302914
#> PRT2006 11.397962
#> QAT2006 10.168204
#> ROM2006 11.640863
#> SEN2006  7.635294
#> SGP2006 12.742356
#> SWE2006 11.927115
#> THA2006 11.350515
#> TTO2006  8.739011
#> TUN2006  9.315941
#> TUR2006 10.622929
#> TZA2006  8.745713
#> URY2006  8.346669
#> USA2006 15.283747
#> ZAF2006 12.040676
#>