Hi everyone,
I have four variables, Country, AgeCategory, EducationLevel, and Wages. I am trying to create a line graph of wages for Agecategory by educationlevel. I used following command:
twoway line Wages AgeCategory if Country=="Nepal", by(Educationlevel)
With this command I get two graphs for two values I have within education level. However, I want to have both lines for education level categories overlapped in the same graph so that I can repeat the command for other countries and combine the graphs. Wages and Agecategory are numeric variable while others are string. I had to make destring agecategory because linegraph was showing typemismatch error. Any help would be appreciated. Thanks.
I have four variables, Country, AgeCategory, EducationLevel, and Wages. I am trying to create a line graph of wages for Agecategory by educationlevel. I used following command:
twoway line Wages AgeCategory if Country=="Nepal", by(Educationlevel)
With this command I get two graphs for two values I have within education level. However, I want to have both lines for education level categories overlapped in the same graph so that I can repeat the command for other countries and combine the graphs. Wages and Agecategory are numeric variable while others are string. I had to make destring agecategory because linegraph was showing typemismatch error. Any help would be appreciated. Thanks.
Comment