sim_linear: Simulated panel data with unit-specific linear time trends...

sim_linearR Documentation

Simulated panel data with unit-specific linear time trends (block DID)

Description

A simulated balanced panel with 200 units and 50 time periods. All 80 treated units receive treatment at period 41 (block DID design). The DGP includes unit-specific slopes on a linear time trend, where treated units have systematically steeper slopes. Used to demonstrate unit-specific time trends with Q.type = "linear" in the CFE estimator.

Format

A data frame with 10000 rows and 4 columns:

time

Time period (1 to 50)

id

Unit identifier (1 to 200)

Y

Outcome variable

D

Treatment indicator (0/1)


fect documentation built on April 30, 2026, 9:06 a.m.