Hey there,
I am new here, so I hope I ll do this request correctly. (If not, let me know (; )
I am currently doing an event study on the stocks of fashion firms and the collapse of the Rana Plaza factory.
The regression is working, but I can't find out how to make stata tell me the number of firms it is basing the regression on.
This is my code:
gen sampleselection = (all==1)
bys firmevent: egen sampelselection2= max(sampleselection)
keep if sampelselection2==1
quietly xi: areg rs i.firmevent|index all, absorb(firmevent) cluster(date)
outreg2 using output.xls, keep(all) addtext(Firm-Event FE, YES, Firm-Event Index Return Interactions, YES) label replace ctitle(model 1, all events & all firms)
all = name of the event
index = lead index
I would be so grateful to anybody who can help.
Greetings from Germany
Julia
I am new here, so I hope I ll do this request correctly. (If not, let me know (; )
I am currently doing an event study on the stocks of fashion firms and the collapse of the Rana Plaza factory.
The regression is working, but I can't find out how to make stata tell me the number of firms it is basing the regression on.
This is my code:
gen sampleselection = (all==1)
bys firmevent: egen sampelselection2= max(sampleselection)
keep if sampelselection2==1
quietly xi: areg rs i.firmevent|index all, absorb(firmevent) cluster(date)
outreg2 using output.xls, keep(all) addtext(Firm-Event FE, YES, Firm-Event Index Return Interactions, YES) label replace ctitle(model 1, all events & all firms)
all = name of the event
index = lead index
I would be so grateful to anybody who can help.
Greetings from Germany
Julia
Comment