print.fixest | R Documentation |
fixest
objects.This function is very similar to usual summary
functions as it
provides the table of coefficients along with other information on the fit of
the estimation. The type of output can be customized by the user (using
function setFixest_print
).
## S3 method for class 'fixest'
print(x, n, type = "table", fitstat = NULL, ...)
setFixest_print(type = "table", fitstat = NULL)
getFixest_print()
x |
A |
n |
Integer, number of coefficients to display. By default, only the
first 8 coefficients are displayed if |
type |
Either |
fitstat |
A formula or a character vector representing which fit
statistic to display. The types must be valid types of the function
|
... |
Other arguments to be passed to |
It is possible to set the default values for the arguments
type
and fitstat
by using the function setFixest_print
.
Laurent Berge
See also the main estimation functions femlm
,
feols
or feglm
. Use
summary.fixest
to see the results with the appropriate
standard-errors, fixef.fixest
to extract the
fixed-effects coefficients, and the function etable
to
visualize the results of multiple estimations.
# Load trade data
data(trade)
# We estimate the effect of distance on trade
# => we account for 3 fixed-effects (FEs)
est_pois = fepois(Euros ~ log(dist_km)|Origin+Destination+Product, trade)
# displaying the results
# (by default SEs are clustered if FEs are used)
print(est_pois)
# By default the coefficient table is displayed.
# If the user wished to display only the coefficents, use option type:
print(est_pois, type = "coef")
# To permanently display coef. only, use setFixest_print:
setFixest_print(type = "coef")
est_pois
# back to default:
setFixest_print(type = "table")
#
# fitstat
#
# We modify which fit statistic to display
print(est_pois, fitstat = ~ . + lr)
# We add the LR test to the default (represented by the ".")
# to show only the LR stat:
print(est_pois, fitstat = ~ . + lr.stat)
# To modify the defaults:
setFixest_print(fitstat = ~ . + lr.stat + rmse)
est_pois
# Back to default (NULL == default)
setFixest_print(fitstat = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.