Generate a worker-firm panel dataset with two-way fixed effects.
Inspired by Abowd, Kramarz & Margolis (1999). Workers switch firms with ~20 % probability each year. Both worker and firm fixed effects contribute to wages.
Parameters
Name
Type
Description
Default
N_workers
int
Number of workers.
500
N_firms
int
Number of firms.
50
N_years
int
Number of years in the panel (starting from 2000).