Dear Statalist Users,
I am using DHS data (multiple rounds of surveys that have been administered in multiple countries and regions) and want to analyse the change of some variables over time. I have used
to define the panel and the time variable.
I now want to show the change of the DVExperience over the different survey rounds. Once, for all countries included, but then also for specific countries or regions.
Using
did more or less deliver the desired results, however, in between the value for each survey round there are vertical lines. To try to sidestep that, I have created a mean variable for the DVEperience for each survey round and then plotted it using
while this basically achieved what I wanted, it is still missing a connecting line between the dots. When trying to add a connecting line, all dots are being connected with each other instead of only from left to right to show the development over time. How can I achieve this?
Thank you very much in advance!
I am using DHS data (multiple rounds of surveys that have been administered in multiple countries and regions) and want to analyse the change of some variables over time. I have used
Code:
tsset Country_1 SurveyRound_1
I now want to show the change of the DVExperience over the different survey rounds. Once, for all countries included, but then also for specific countries or regions.
Using
Code:
tsline DVExperience
Code:
egen mean_DVExperience = mean(DVExperience), by(SurveyRound_1) graph two-way scatter meanDVExperience SurveyRound_1
Thank you very much in advance!
Comment