![]() ![]() Saving(MarginalerEffektEinkommen.gph, replace) Ytitle("Marginaler Effekt Einkommensniveau auf Einkommenshomogamie)") xtitle("Einkommensniveau der Ankerperson") title("Regression ohne Interaktion") /// Marginsplot, noci recast(line) recastci(rline) /// Margins, dydx(KennenlernArt) at(eink=(1(100)6500) KennenlernArt=(1)) atmeans I.hauptschule i.mittlerereife i.ausbildung i.hochschulreifeo i.hochschulreifea i.hochschulabschluss i.promotion // Regress EHeterogamie KennenlernArt i.frau i.Pfrau c.Alter c.PAlter c.eink c.Peink i.DummyKind i.frau#i.DummyKind /// I.ausbildung i.hochschulreifeo i.hochschulreifea i.hochschulabschluss i.promotion // Regress EHeterogamie KennenlernArt i.frau i.Pfrau c.Alter c.PAlter c.eink c.Peink i.hauptschule i.mittlerereife /// I would like to create a conditional effect plot and a conditional profile plot. ![]() I have different identification codes available. Since I have to deal with different fiscal years and different industry groups, how can this problem be programmed with Stata? Industry return is the average return of same industry group as firm x, over the same period. To calculate the industry adjusted stock return for a fiscal year observation of firm X in fiscal year "t", I need something like return firm X (t-1) - average industry return (t-1). In particular, I want to calculate for each ExecuComp firm year observation in my sample the industry adjusted stock return of the firm in the previous fiscal year.Į.g, If I have an year observation for company X, who's fiscal year runs from 1/jan/2010-31/dec/2010, I am interested in its stock return for the period 1/jan/2009-31/dec/2009. I have monthly return data that I want to convert to annual returns.The idea is that annual returns = (1+first month ret) * (1+ second month return) *. I want to combine my fiscal year observations from ExecuComp with monthly return data (from CRSP). The sampel consists of fiscal year observations for different firms (panel data). My dataset is a S&P500 sample from ExecuComp. I am currently doing research on top executive turnover and for this research I need to calculate cumulative industry adjusted stock returns. I would appreciate any advice/discussion about the role of group() and id() in the panel context, and whether I am misspecifying my model with this current set-up. When I try to specify group(idyear) and id(id) together, I get an error message.ĭo I need to specify id(id) if I set the group(idyear) variable to be person/year specific? I have read through the Stata journal article on mixlogit multiple times, and the section on group vs. When I run mixlogit, I use group(idyear). Since the choice is made each year, I generated idyear which creates unique identifiers for each individual in each year. I have a variable id which identifies the individuals across years. I am trying to estimate a mixlogit model of the effect of plan specific characteristics on choice. I have panel data, which means that I observe the same individuals choosing plans in multiple years. I am working with insurance choice dataset, where individuals choose insurance plans once a year. ![]() I'm just unsure if this isn't going to pose any problems for me down the line? I thus suspect the issue might lie with StatTransfer, but as they have no forum I figured I would ask if anyone here had any ideas as to why this occurs? And what I can do to fix the issue?Īs the coding was (I believe) introduced with STATA 13 it dawned upon me that perhaps converting to STATA 12 would solve the issue (I had previously tried both converting to STATA 13 and 14). EDIT3: This was actually an old STATA 12 file) sas7bdat-files where I also used StatTransfer. dta files >2 gb which I've been able to open just fine (EDIT: these are actually also converted. I'm using STATA/MP v.14 64-bit with 32 (also tried on different server with 48) cores and 512 gb RAM. Converting and opening smaller files haven't been an issue. Either the file was written incorrectly in the first place or has become corrupted r(612)". I get an error message stating that ".dta file is corrupt. dta files >2gb which I have created by converting a. I'm new to this forum, so please forgive me if I forget any relevant information - please ask if that is the case.Īs the title states, I'm unable to open. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |