base_did {fixest}R Documentation

Sample data for difference in difference

Description

This data has been generated to illustrate the use of difference in difference functions in package fixest. This is a balanced panel of 104 individuals and 10 periods. About half the individuals are treated, the treatment having a positive effect on the dependent variable y after the 5th period. The effect of the treatment on y is gradual.

Usage

data(base_did)

Format

base_did is a data frame with 1,040 observations and 6 variables named y, x1, id, period, post and treat.

Source

This data has been generated from R.

See Also

The DiD functions of the package fixest are did_estimate_yearly_effects and did_plot_yearly_effects.


[Package fixest version 0.1.0 Index]