Learn R Programming

fect

R package for implementing counterfactual estimators in panel fixed-effect settings. It is suitable for panel/TSCS 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—hence, a generalization of gsynth—and the matrix completion method.

Repo: GitHub (0.4.1)

Examples: R code used in the tutorial can be downloaded from here.

Reference: Licheng Liu, Ye Wang, Yiqing Xu (2021). A Practical Guide to Counterfactual Estimators for Causal Inference with Time-Series Cross-Sectional Data. American Journal of Political Science, conditionally accepted.

Installation

Copy Link

Version

Install

install.packages('fect')

Monthly Downloads

594

Version

1.0.0

License

MIT + file LICENSE

Maintainer

Ziyi Liu

Last Published

October 14th, 2022

Functions in fect (1.0.0)

print.interFE

Print Results
get.cohort

Get the Cohort Index
fect-internal

Internal FEct Functions
att.cumu

Calculate Cumulative Treatment Effects
print.fect

Print Results
fect

Fixed Effects Counterfactual Estimators
plot.fect

Plotting
interFE

Interactive Fixed Effects Models
fect-package

Fixed Effects Counterfactual Estimators
simdata

Simulated data
turnout

EDR and voter turnout in the US
simdata1

Simulated data