First of all, here are my data:
Code:
input float(count_appr_compbased time_to_treat) long ONETSOCCODE float(yearmonth event_time_CBOF) byte(IndustryFE1 stateFE1) 0 -246 51 480 726 0 0 0 -246 51 480 726 0 0 0 -246 51 480 726 0 0 0 -246 51 480 726 0 0 0 -246 51 480 726 0 0 0 -246 51 480 726 0 0 0 -246 51 480 726 0 0 0 -246 51 480 726 0 0 3 -244 51 482 726 0 0 4 -244 51 482 726 1 0 1 -243 51 483 726 0 0 2 -243 51 483 726 0 0 3 -243 51 483 726 0 0
At certain dates, frameworks called CBOFs were implemented at the occupation level (ONETSOCCODE), and I would like to study the impact of this implementation on the number of apprentices pursuing certain programmes (count_appr_compbased; this is a count variable). My data are repeated cross-sections.
This is the code I ran:
Code:
eventdd count_appr_compbased i.IndustryFE* i.yearmonth i.stateFE* if time_to_treat!=., timevar(time_to_treat) method(ols, cluster(ONETSOCCODE)) leads(5) lags(5) keepbal(ONETSOCCODE) balance graph_op(ytitle("Number of CB apprenticeships as a function of CBOF") xlabel(-10(1)10))
variable _lf_Ptime_3 not found
Please could someone let me know what I've done wrong?
Best regards,
Maxence Morlet
0 Response to Error with eventdd
Post a Comment