Package: fect 1.0.0

Ziyi Liu

fect: Fixed Effects Counterfactuals

Estimates causal effects with panel data using the counterfactual methods. It is suitable for panel or time-series cross-sectional analysis with binary treatments under (hypothetically) baseline randomization.It allows a treatment to switch on and off and limited carryover effects. It supports linear factor models, a generalization of gsynth and the matrix completion method. Implementation details can be found in Liu, Wang and Xu (2022) <arxiv:2107.00856>.

Authors:Licheng Liu [aut], Ziyi Liu [aut, cre], Ye Wang [aut], Yiqing Xu [aut]

fect_1.0.0.tar.gz
fect_1.0.0.tar.gz(r-4.5-noble)fect_1.0.0.tar.gz(r-4.4-noble)
fect_1.0.0.tgz(r-4.4-emscripten)fect_1.0.0.tgz(r-4.3-emscripten)
fect.pdf |fect.html
fect/json (API)
NEWS

# Install 'fect' in R:
install.packages('fect', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

2.37 score 47 scripts 299 downloads 3 exports 69 dependencies

Last updated 2 years agofrom:f37af25611. Checks:OK: 1 NOTE: 1. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 04 2024
R-4.5-linux-x86_64NOTENov 04 2024

Exports:fectget.cohortinterFE

Dependencies:abindclicodetoolscolorspacecpp11crayondigestdoParalleldoRNGdplyrdreamerrfansifarverfixestforcatsforeachFormulafuturegenericsGGallyggplot2ggstatsglobalsgluegridExtragtablehmsisobanditeratorslabelinglatticelifecyclelistenvmagrittrMASSMatrixmgcvmunsellmvtnormnlmenumDerivpanelViewparallellypatchworkpillarpkgconfigplyrprettyunitsprogresspurrrR6RColorBrewerRcppRcppArmadillorlangrngtoolssandwichscalesstringistringmagicstringrtibbletidyrtidyselectutf8vctrsviridisLitewithrzoo

Readme and manuals

Help Manual

Help pageTopics
Fixed Effects Counterfactual Estimatorsfect-package
Calculate Cumulative Treatment Effectsatt.cumu
Fixed Effects Counterfactual Estimatorsfect
Internal FEct Functionsbeta_iter beta_iter_ub cv.sample data_ub_adj equiv_test fect.default fect.fe fect.formula fect.mc fe_add fe_add2 fe_ad_covar_iter fe_ad_inter_covar_iter fe_ad_inter_iter fe_ad_iter interFE.default interFE.formula inter_fe inter_fe_mc inter_fe_ub panel_beta panel_est panel_factor panel_factor_ub panel_fe panel_fe_ub XXinv Y_demean _gsynth_beta_iter _gsynth_beta_iter_ub _gsynth_data_ub_adj _gsynth_fe_add _gsynth_fe_add2 _gsynth_fe_ad_covar_iter _gsynth_fe_ad_inter_covar_iter _gsynth_fe_ad_inter_iter _gsynth_fe_ad_iter _gsynth_inter_fe _gsynth_inter_fe_mc _gsynth_inter_fe_ub _gsynth_panel_beta _gsynth_panel_est _gsynth_panel_factor _gsynth_panel_factor_ub _gsynth_panel_fe _gsynth_panel_fe_ub _gsynth_XXinv _gsynth_Y_demean
Get the Cohort Indexget.cohort
Interactive Fixed Effects ModelsinterFE
Plottingplot.fect
Print Resultsprint.fect
Print Resultsprint.interFE
Simulated datasimdata
Simulated datasimdata1
EDR and voter turnout in the USturnout