fect

Table of contents

  1. Notes
  2. Installation and options
  3. Test the command

Notes

  • Based on: Xu (2017). Generalized Synthetic Control / interactive fixed-effects framework.
  • Program version (if available): -

  • Last checked: 7 Jul 2026

  • Additional info: Not on SSC. Installation is directly from GitHub. Requires additional package gwtmean.

Installation and options

net install fect, from("https://raw.githubusercontent.com/xuyiqing/fect_stata/master/") replace
ssc install _gwtmean, replace  // depdendency

Take a look at the help file:

help fect

Test the command

Please make sure that you generate the shared setup data using the setup block given here

Let’s try the basic command:

fect Y, treat(D) unit(id) time(t) 

which currently does not show an output but displays a graph: