I am attempting to build a scatterplot using dummy variables. Of course, simply plotting the dummies as a scatterplot is not helpful. So, what I would like to do is plot the percentage of observations with a 1.
I have a panel set of observations with unique household indicators, the state they live in, the year of the survey, and whether they take up food stamps in that year (this is the dummy. 1 = yes, 0 = no). I'd like to plot the percentages of each state of SNAP take up by year and state (eg. Idaho in year 2003 is X% for one point, MD in year 2003 is Y% as another, etc). How should I go about doing this? I'm not sure how to calculate the percentage of the dummy from the panel data.
I have a panel set of observations with unique household indicators, the state they live in, the year of the survey, and whether they take up food stamps in that year (this is the dummy. 1 = yes, 0 = no). I'd like to plot the percentages of each state of SNAP take up by year and state (eg. Idaho in year 2003 is X% for one point, MD in year 2003 is Y% as another, etc). How should I go about doing this? I'm not sure how to calculate the percentage of the dummy from the panel data.
Comment