- class arpoon.rfixest.Fixest
Main class to interact with r-fixest
Example: initialize a Fixest object, with trade data
In [1]: import arpoon as ar In [2]: data = ar.rpytools.r_data.load("trade", "fixest") In [3]: data Out[3]: shape: (38_325, 6) ┌─────────────┬────────┬─────────┬────────┬─────────────┬─────────────┐ │ Destination ┆ Origin ┆ Product ┆ Year ┆ dist_km ┆ Euros │ │ --- ┆ --- ┆ --- ┆ --- ┆ --- ┆ --- │ │ cat ┆ cat ┆ i32 ┆ f64 ┆ f64 ┆ f64 │ ╞═════════════╪════════╪═════════╪════════╪═════════════╪═════════════╡ │ LU ┆ BE ┆ 1 ┆ 2007.0 ┆ 139.571939 ┆ 2.966697e6 │ │ BE ┆ LU ┆ 1 ┆ 2007.0 ┆ 139.571939 ┆ 6.75503e6 │ │ LU ┆ BE ┆ 2 ┆ 2007.0 ┆ 139.571939 ┆ 5.7078782e7 │ │ BE ┆ LU ┆ 2 ┆ 2007.0 ┆ 139.571939 ┆ 7.117406e6 │ │ LU ┆ BE ┆ 3 ┆ 2007.0 ┆ 139.571939 ┆ 1.7379821e7 │ │ … ┆ … ┆ … ┆ … ┆ … ┆ … │ │ FI ┆ PT ┆ 18 ┆ 2016.0 ┆ 3542.362784 ┆ 56.0 │ │ PT ┆ FI ┆ 19 ┆ 2016.0 ┆ 3542.362784 ┆ 224842.0 │ │ FI ┆ PT ┆ 19 ┆ 2016.0 ┆ 3542.362784 ┆ 212957.0 │ │ PT ┆ FI ┆ 20 ┆ 2016.0 ┆ 3542.362784 ┆ 874663.0 │ │ FI ┆ PT ┆ 20 ┆ 2016.0 ┆ 3542.362784 ┆ 2.831518e6 │ └─────────────┴────────┴─────────┴────────┴─────────────┴─────────────┘ # initialize a Fixest object In [4]: fixest = ar.rfixest.Fixest(data=data) In [5]: fixest Out[5]: Fixest
Constructors¶
Estimation¶
-
feols(fml: str, vcov: str =
None
, ...) FixestOLS Estimates OLS with any number of fixed-effects, by calling
r-fixest
feols
-
feglm(fml: str, family: str =
'gaussian'
, ...) FixestGLM Estimates GLM models with any number of fixed-effects, by calling
r-fixest
feglm
-
fenegbin(fml=
None
, vcov=None
, theta_init=None
, ...) FixestNMLM Call
r-fixest
fenegbin
Results¶
-
coeftable(keep: str =
None
, drop: str =None
, ...) Methods to extracts the coefficients table and its sub-components from an estimation.
- etable(*keys, ...) list | str | pandas.core.frame.DataFrame
Estimations table (export the results of multiples estimations to a DF or to Latex)
Methods¶
- clear_cache()
Clears the cache storing objects returned by the estimation methods.
-
get_metadata(key: str =
None
, columns: list | str =None
, ...)
-
classmethod r_globalenv(symbol: str | Iterable =
None
, ...) None
Info¶
Export¶
-
feols(fml: str, vcov: str =