Dear all,
I am currently working on a DiD comparing Dutch firms to firms in a group of ontrol countries. The objective is to find out whether a law change in NL in 2008 has an effect ('year' runs from 2005 -2012).
I ran several xtreg regressions. An example would be:
For this purpose, I would like to graph the (parallel) time trend. Other discussions on this forum indicate I should use:
graph twoway connect
but I am struggling with the code.
Could anyone provide me with a suggestion?
Thank you for your help!
Below a snapshot of my dataset.
I am currently working on a DiD comparing Dutch firms to firms in a group of ontrol countries. The objective is to find out whether a law change in NL in 2008 has an effect ('year' runs from 2005 -2012).
I ran several xtreg regressions. An example would be:
Code:
xtreg ROAni TA N_empl i.year i.POST##i.NL, robust cluster(sector) fe i(ID_BvD)
For this purpose, I would like to graph the (parallel) time trend. Other discussions on this forum indicate I should use:
graph twoway connect
but I am struggling with the code.
Could anyone provide me with a suggestion?
Thank you for your help!
Below a snapshot of my dataset.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long ID_BvD str89 company_name int year double(RDexp ROAni Turnover N_empl TA) long(country sector) float(POST NL survivor) 1440 "CCR LOGISTICS SYSTEMS AG" 2005 0 5.27 32931 49 15959 2 15 0 0 1 2093 "GASCOGNE" 2005 0 -5.312 605450 2760 494247 3 19 0 0 1 639 "COMPUGROUP MEDICAL AG" 2005 0 10.934 119731 786 140774 2 15 0 0 1 1926 "LISI" 2005 10100 5.144 622630 5863 691484 3 10 0 0 1 1678 "EUROPACORP S.A." 2005 0 2.494 148079 63 230972 3 11 0 0 1 567 "E.ON SE" 2005 24000 5.852 53390000 79947 126562000 2 6 0 0 1 2269 "KARDAN N.V." 2005 0 2.975 463449.184728858 6120 1499164.65273744 4 11 0 1 1 1666 "SEQUANA" 2005 17000 6.957 4092000 14305 5002000 3 19 0 0 1 445 "HYRICAN INFORMATIONSSYSTEME AG" 2005 0 6.689 63459 76 30736 2 18 0 0 1 487 "CLAAS KGAA MBH" 2005 71526 3.355 2193738 8134 1611703 2 9 0 0 1 335 "TUI AG" 2005 0 2.979 18514700 62947 15328400 2 11 0 0 1 2232 "EUROPEAN ASSETS TRUST NV" 2005 0 27.156 158 . 206295 4 1 0 1 0 1356 "EVI AUDIO GMBH" 2005 3080.26226 0 74073.43437 477 33062.35534 2 9 0 0 0 568 "TIPTEL AG" 2005 0 -2.944 31733 257 17223 2 9 0 0 0 2046 "UNIBAIL-RODAMCO" 2005 1300 15.965 515700 953 8677200 3 11 0 0 1 1516 "SPIR COMMUNICATION SA" 2005 0 11.778 568714 4100 420200 3 15 0 0 1 1541 "VISIODENT SA" 2005 0 7.282 9169 70 5122 3 11 0 0 1 1795 "THEOLIA S.A." 2005 0 .074 14245 55 75924 3 6 0 0 1 1833 "SAM" 2005 0 3.693 33080 223 33878 3 10 0 0 1 1620 "EUROGERM S.A." 2005 0 14.233 35599 134 20481 3 5 0 0 1 76 "REALCO" 2005 0 9.644 5333 31 3007 1 11 0 0 0 1459 "EINHELL GERMANY AG" 2005 0 5.626 392473 926 207397 2 9 0 0 1 773 "FRAPORT AG" 2005 0 4.079 2108800 25781 3951600 2 17 0 0 1 1952 "VM MATERIAUX SA" 2005 0 6.068 459464 2000 243974 3 2 0 0 1 934 "SOLAR-FABRIK AG" 2005 0 .776 51311 165 43833 2 9 0 0 1 36 "PICANOL NV" 2005 0 -1.656 398384 2331 284706 1 9 0 0 1 2102 "SABETON SA" 2005 0 -3.15 20070 178 85535 3 5 0 0 1 156 "PROGEO HOLDING AG" 2005 0 .457 1689 17 6130 2 9 0 0 1 2204 "EXACT HOLDING NV" 2005 0 11.601 224528 2698 276123 4 15 0 1 1 2171 "HYDRATEC INDUSTRIES N.V." 2005 0 9.886 32979 287 18390 4 2 0 1 1 210 "DEINBOCK IMMOBILIEN-VERMOGENSVERWALTUNG AG" 2005 0 0 2110 . 22099 2 11 0 0 0 1507 "SOCIETE INTERNATIONALE DE PLANTATIONS D' HEVEAS SA" 2005 0 14.441 95497 5506 108903 3 13 0 0 1 943 "HEIDELBERGCEMENT AG" 2005 43000 3.473 7958646 41260 11934651 2 2 0 0 1 1884 "GROUPE VIAL" 2005 0 12.144 63080 178 45461 3 19 0 0 1 1339 "ZF FRIEDRICHSHAFEN AG" 2005 550000 3.416 11014000 53940 7230000 2 9 0 0 1 493 "AHLERS AG" 2005 0 4.311 244447 3827 212280 2 16 0 0 1 649 "OVB HOLDING AG" 2005 0 15.288 157610 . 100692 2 11 0 0 1 1542 "CEGID GROUP" 2005 0 2.934 225878 2067 334935 3 11 0 0 1 1515 "PIERRE ET VACANCES SA" 2005 0 3.173 1239813 8637 1328780 3 7 0 0 1 2166 "MECO INTERNATIONAL B.V." 2005 3390 .419 40720 147 39610 4 11 0 1 0 329 "ITRON ZAEHLER & SYSTEMTECHNIK GMBH" 2005 90.647 . 30397.281 . 32739.288 2 9 0 0 1 end
Comment