Hello everyone,
I have a panel of 68 countries that are observed from 1989-2012. I am trying to make a graphical illustration of my variables of interest "market capitalization, turnover ratio and value traded". I have put these variables separately in an excel file (+ the years). I am typing the following 4 commands however, I am not obtaining the graph that I excepted to see (attached file). Maybe the reason is that sometimes these variables are not observed in some years. Nevertheless, i do not know how to overcome this problem. Any help would be highly appreciated.
egen TRatio=mean( Tratio ), by(year)
egen VTraded=mean( Vtraded ), by(year)
egen MCap=mean( Mcap ), by(year)
twoway (line Tratio year , sort)(line VTraded year, sort ) (line VTraded year, sort clpattern(dash)), ytitle("Finance/GDP") xtitle("Year") title("Mean")
Related Posts with Twoway Graph in Stata
Display point estimates for multiple regressions of covariates in one column with outreg2.I am trying to create a balance table that compares differences between groups for multiple covariat…
Moving average with panel dataHello all, Below is an example of the data I am working with: Code: input float(year quarter mile…
Direct effect switches sign when moderator is added - what does this mean?Hello! I have examined a panel and performed various analyses in STATA, whose results you can see …
Xtset and string variablesHi Everyone, I am trying to set my data as a panel by using xtset command. I have uasid as identifi…
How to remove Autocorrelation and Hereroskedasticity detected in my FEM modelI used Hausman test and as my prob < 5%. I choose to use FEM. But after testing I found out that …
Subscribe to:
Post Comments (Atom)
0 Response to Twoway Graph in Stata
Post a Comment