Dear Stata users
I have monthly data on stock prices form Jan-2019 to March-2020 for three types of firms. I encode the variables (Company name, type of firm and Country, and stock exchange listed). Please, first, I need to make a line graph that will include the stock prices movements across these months for the three types of firms (I mean here in the same Graph). Second, I need to make another line graph that will compare the stock prices movements across these months between firm type 1 and 2 with firm type 3 in their home country/stock exchnge. Please, how can I do that in Stata. I am attaching an example of my data. Thanks a lot .
input long(company_id Specialisation_id Stockexchangeslisted_id) double(Jan2019 Feb2019 Mar2019)
660 1 68 810075847506523 8229569122195241 797194782793522
373 1 68 101187919467688 102762271821499 994704441726208
29 1 68 532417341470718 543867176771164 533848570883274
254 1 68 526692423820496 549592094421387 539573488533497
333 1 38 46020075007081 5061478040874 478680688898278
706 1 77 116110699279234 113911285875365 110795450219885
212 1 16 464188819551468 482612577152252 465593069368601
1177 1 38 304890709061908 303317960500717 289556312292814
256 1 68 894518382847309 915986824035645 893087153434753
452 1 10 8716459464907651 9138857809901240 8131168141126629
1302 1 78 566659007072449 577839028473351 555325803958337
377 1 68 418062097095224 454272215545177 485472988114303
677 1 21 224095802817345 243665428268909 243890108239651
1096 1 78 765908543073099 787579428974099 7720346093654631
1152 1 68 153570915967226 168026333034039 161442677736282
662 1 68 234721623659134 255617587394741 26005438426137
372 1 68 818663223981857 93745526522398 900243300497532
1328 1 21 113328577241898 134426026494503 128382135281563
378 1 68 851581500470638 934592806398869 90739944756031
183 1 16 580797724366188 614949079918861 572147545492649
276 1 78 572785073364813 560073502846215 544758394546959
374 1 68 585372829735279 605410041511059 586804059147835
Related Posts with Line graph/ Monthly data
Moderation with TestparmHello, I am running a moderation analysis looking to see if Race (4 categories) moderates the relat…
Locate where a variable changes valueDear Statalist, I have a dataset on CEO and firm characteristics. My question is how to find the ye…
How to Test The Parallel Trends Assumption Of Difference in Differences EstimationHello All, I apologize for this question, as I know that it has been asked before but I am unable t…
Working with weekly*dataHello, I'm sure this problem will appear simple, but I have not found my way out of it. I'm having…
loop for graphsI'm a stata novice, and I've searched and tried things I've found, but I just can't figure this out.…
Subscribe to:
Post Comments (Atom)
0 Response to Line graph/ Monthly data
Post a Comment