sim_trend: Simulated panel data with unit-specific sinusoidal time...

sim_trendR Documentation

Simulated panel data with unit-specific sinusoidal 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 amplitudes on a half-cycle sinusoidal time trend, where treated units have systematically larger amplitudes.

Format

A data frame with 10000 rows and 4 columns:

id

Unit identifier (1 to 200)

time

Time period (1 to 50)

Y

Outcome variable

D

Treatment indicator (0/1)


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