Hello,
I'm trying to generate a line graph. The variables are asthma, west, east, and year. I would like the year to be on the x-axis and percentage of people who have asthma to be on the y-axis. I am trying to graph the percentage of people with asthma over the years if they live on the WEST coast and also the percentage of people with asthma over the years if they live on the EAST coast. I want to graph each separately and also one graph where there a two lines where one line=west and second line=east.
Here's an example code.
I'm trying to generate a line graph. The variables are asthma, west, east, and year. I would like the year to be on the x-axis and percentage of people who have asthma to be on the y-axis. I am trying to graph the percentage of people with asthma over the years if they live on the WEST coast and also the percentage of people with asthma over the years if they live on the EAST coast. I want to graph each separately and also one graph where there a two lines where one line=west and second line=east.
Here's an example code.
Code:
* Example generated by -dataex clear input int(year asthma west east) 2010 1 1 0 2010 1 0 1 2010 0 1 0 2010 0 1 0 2010 0 0 1 2010 1 0 1 2011 0 0 1 2011 0 1 0 2011 0 1 0 2011 1 1 0 2011 1 0 1 2012 1 0 1 2012 1 0 1 2012 0 0 1 2012 0 1 0 2012 0 0 1 2012 1 1 0 2012 1 1 0 2012 1 1 0 2012 0 1 0 2012 1 0 1 2013 1 1 0 2013 1 0 1 2013 1 0 1 2013 0 1 0 2013 0 0 1 2013 1 1 0 2013 0 1 0 2013 0 0 1 2014 0 1 0 2014 0 0 1 2014 0 1 0 2014 0 1 0 2014 1 1 0 2014 1 1 0 2014 1 1 0 2014 1 0 1 2014 0 0 1 2014 1 0 1 2014 1 1 0 2014 1 0 1 2015 1 0 1 2015 1 1 0 2015 1 1 0 2015 1 1 0 2015 0 0 1 2015 0 0 1 2015 0 0 1 2015 0 0 1 2015 1 1 0 2015 0 0 1 2015 0 0 1 2015 1 0 1 2015 0 0 1 2015 0 1 0 2015 1 0 1 2015 1 0 1 2015 0 0 1 end
Comment