Hi Stata people,
I have two questions, I want to apply merger simulation after running a two-level nested logit model demand. For the first step, I want to define my panel data, and since I have different markets at different times, my panel data has three dimensions. my Vendors, different times, and different markets. I could define it but for the xtset command, I have repetition in my time variable. I use the following codes:
egen qm = group (quarter market_name), label
xtset Vendor qm
drop if qm==qm[_n-1]
but Stata is not removing all the repetitions. first, some of them and then when I do my xtset comes again the failure there are some repetitions and then I need to run the drop codes for the second time and then all the repetitions will be removed. why is it like this? why Stata doesn't remove all of them the first time of running?
The second question is:
I sort my vendors and for the command " mergersim simulate if quarter == 188 &market_name=="NEW YORK", seller(50) buyer(52) detail" every time when I run the codes the id of the seller and buyer ( the Vendors which I want to do the merge between them) is getting different. once they are 50 and 52, next time is 150 and 300. and next time something different. Why is it like this? how can I fix it?
I appreciate any answer!!!
Related Posts with Merger Simulation
Missing F-statistics of regression. regress socialsecurity ageeea ageeea2 eea ageeeaeea ageeea2eea if eeadonutregression==1 [pweight=w…
Fixed effects: country, year and industryHi everybody, I have a dataset consisting of ~3,000 Private Equity returns in the period 2012-2018.…
Removing duplicates within years in panel dataHello, I am struggling with something that I wanted to share. I have an unbalanced panel dataset. T…
Bilateral data (origin and destination country) and the command tsset/xtsetHi i have a migration dataset with origin and destination country for the years 1980, 85, 90, 95, …
command _bayesmh_eqlablist is unrecognizedHi everyone, I am practicing bayesmh estimations on stata 14 for academic purposes. I do get bayesm…
Subscribe to:
Post Comments (Atom)
0 Response to Merger Simulation
Post a Comment