getFE {FENmlm} | R Documentation |
femlm
estimation.This function retrives the fixed effects from a femlm estimation. It is useful only when there are more than one cluster.
getFE(x)
x |
A If the cluster coefficients not regular, then several reference points need to be set, leading to the coefficients to be NOT interpretable. If this is the case, then a warning is raised. |
A list containig the vectors of the fixed effects.
If there is more than 1 cluster, then the attribute “References” is created. This is a vector of length the number of clusters, each element contains the number of fixed-effects set as references. By construction, the elements of the first clusters are never set as references. In the presence of regular clusters, there should be Q-1 references (with Q the number of clusters).
Laurent Berge
plot.femlm.allClusters
. See also the main estimation function femlm
. Use summary.femlm
to see the results with the appropriate standard-errors, getFE
to extract the cluster coefficients, and the functions res2table
and res2tex
to visualize the results of multiple estimations.
data(trade) # We estimate the effect of distance on trade => we account for 3 cluster effects est_pois = femlm(Euros ~ log(dist_km)|Origin+Destination+Product, trade) # obtaining the cluster coefficients fe_trade = getFE(est_pois) # plotting them plot(fe_trade) # plotting only the Products fixed-effects & showing more of them plot(fe_trade$Product, n=8)