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
Choosing the max value per individualHi everyone, I just wanted to know how to keep the max value per individual. I have this data: id …
Estimated coefficients structural VAR - svarHi, I am trying to estimate the coefficients of an svar model with exogenous variables. I understan…
Generating datesHi everyone, Just wanted to know how to generate dates based on this data: month1 | year1 | month2…
xtabond2 interaction terms between two continuous variables.Greetings Statalist members, I need your help to make sure that i did input the interaction term int…
rep macro in simulate commandHi, I really like the simplicity of the simulate command to run MonteCarlo simulations. But I was wo…
Subscribe to:
Post Comments (Atom)
0 Response to Line graph/ Monthly data
Post a Comment